[MP2]: strange behavior with Apache2::SubRequest::run
[MP2]: strange behavior with Apache2::SubRequest::run
am 18.09.2008 16:31:28 von titetluc
------=_Part_9902_1497027.1221748288213
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello all,
I have 2 URIs returning HTTP_MOVED_TEMPORARILY
The first one, /test_mod_perl is written using mod_perl
The second one, /test_mod_cgi is written using CGI
I call each of these URIs using a Apache2::SubRequest object
my $subr1 = $r->lookup_uri('/test_mod_perl');
my $rc1 = $subr1->run(); ==========> $rc1 = 302
my $status1 = $subr1->status(); ==========> $status1 = 200
my $subr2 = $r->lookup_uri('/test_mod_cgi');
my $rc2 = $subr2->run(); ==========> $rc1 = 0
my $status2 = $subr2->status(); ==========> $status1 = 302
Why this behavior ? Why are there differences between the 2 URIs ?
IMHO, the second behavior is the correct one.
What is your opinion ???
Thanks
------=_Part_9902_1497027.1221748288213
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello all,
I have 2 URIs returning HTTP_MOVED_TEMPORARILY
The first one, /test_mod_perl is written using mod_perl
The second one, /test_mod_cgi is written using CGI
I call each of these URIs using a Apache2::SubRequest object
my $subr1 = $r->lookup_uri('/test_mod_perl');
my $rc1 = $subr1->run(); ==========> $rc1 = 302
my $status1 = $subr1->status(); ==========> $status1 = 200
my $subr2 = $r->lookup_uri('/test_mod_cgi');
my $rc2 = $subr2->run(); ==========> $rc1 = 0
my $status2 = $subr2->status(); ==========> $status1 = 302
Why this behavior ? Why are there differences between the 2 URIs ?
IMHO, the second behavior is the correct one.
What is your opinion ???
Thanks
------=_Part_9902_1497027.1221748288213--
Re: [MP2]: strange behavior with Apache2::SubRequest::run
am 18.09.2008 19:38:09 von Perrin Harkins
On Thu, Sep 18, 2008 at 10:31 AM, titetluc titetluc wrote:
> I have 2 URIs returning HTTP_MOVED_TEMPORARILY
> The first one, /test_mod_perl is written using mod_perl
> The second one, /test_mod_cgi is written using CGI
Does your mod_perl one return Apache2::Const::REDIRECT at the end?
- Perrin
Re: [MP2]: strange behavior with Apache2::SubRequest::run
am 19.09.2008 09:29:01 von titetluc
------=_Part_14940_27055544.1221809341906
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
2008/9/18 Perrin Harkins
> On Thu, Sep 18, 2008 at 10:31 AM, titetluc titetluc
> wrote:
> > I have 2 URIs returning HTTP_MOVED_TEMPORARILY
> > The first one, /test_mod_perl is written using mod_perl
> > The second one, /test_mod_cgi is written using CGI
>
> Does your mod_perl one return Apache2::Const::REDIRECT at the end?
>
No, the module returns Apache2::Const::MOVED_TEMPORARILY, setting the
Location header by using $r->err_headers_out
> - Perrin
------=_Part_14940_27055544.1221809341906
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
2008/9/18 Perrin Harkins
<>
On Thu, Sep 18, 2008 at 10:31 AM, titetluc titetluc <> wrote:
> I have 2 URIs returning HTTP_MOVED_TEMPORARILY
> The first one, /test_mod_perl is written using mod_perl
> The second one, /test_mod_cgi is written using CGI
Does your mod_perl one return Apache2::Const::REDIRECT at the end?
No, the module returns Apache2::Const::MOVED_TEMPORARILY, setting the Location header by using $r->err_headers_out
- Perrin
------=_Part_14940_27055544.1221809341906--
Re: [MP2]: strange behavior with Apache2::SubRequest::run
am 19.09.2008 09:36:25 von torsten.foertsch
On Fri 19 Sep 2008, titetluc titetluc wrote:
> > Does your mod_perl one return Apache2::Const::REDIRECT at the end?
>
> No, the module returns Apache2::Const::MOVED_TEMPORARILY, setting the
> Location header by using $r->err_headers_out
$ perl -MApache2::Const=REDIRECT,HTTP_MOVED_TEMPORARILY -le 'print
REDIRECT; print HTTP_MOVED_TEMPORARILY'
302
302
Guess what that means.
Torsten
--
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net
Re: [MP2]: strange behavior with Apache2::SubRequest::run
am 22.09.2008 08:59:35 von titetluc
------=_Part_2740_1076157.1222066775272
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
2008/9/19 Torsten Foertsch
> On Fri 19 Sep 2008, titetluc titetluc wrote:
> > > Does your mod_perl one return Apache2::Const::REDIRECT at the end?
> >
> > No, the module returns Apache2::Const::MOVED_TEMPORARILY, setting the
> > Location header by using $r->err_headers_out
>
> $ perl -MApache2::Const=REDIRECT,HTTP_MOVED_TEMPORARILY -le 'print
> REDIRECT; print HTTP_MOVED_TEMPORARILY'
> 302
> 302
>
> Guess what that means.
That means REDIRECT and HTTP_MOVED_TEMPORARILY are synonyms, but that does
not explain the Apache2::SubRequest::run and $subr->status returned values
!!!! ;-)
>
> Torsten
>
> --
> Need professional mod_perl support?
> Just hire me: torsten.foertsch@gmx.net
>
------=_Part_2740_1076157.1222066775272
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
2008/9/19 Torsten Foertsch
<>
On Fri 19 Sep 2008, titetluc titetluc wrote:
> > Does your mod_perl one return Apache2::Const::REDIRECT at the end?
>
> No, the module returns Apache2::Const::MOVED_TEMPORARILY, setting the
> Location header by using $r->err_headers_out
$ perl -MApache2::Const=REDIRECT,HTTP_MOVED_TEMPORARILY -le 'print
REDIRECT; print HTTP_MOVED_TEMPORARILY'
302
302
Guess what that means.
That means REDIRECT and HTTP_MOVED_TEMPORARILY are synonyms, but that does not explain the Apache2::SubRequest::run and $subr->status returned values !!!! ;-)
Torsten
--
Need professional mod_perl support?
Just hire me:
------=_Part_2740_1076157.1222066775272--
Re: [MP2]: strange behavior with Apache2::SubRequest::run
am 25.09.2008 12:37:01 von titetluc
------=_Part_2686_20414469.1222339021432
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Does anyone has additional documentation on Apache2::SubRequest::run and
Apache2::SubRequest::status returned values ?
Gaetan
2008/9/22 titetluc titetluc
> 2008/9/19 Torsten Foertsch
>
>> On Fri 19 Sep 2008, titetluc titetluc wrote:
>> > > Does your mod_perl one return Apache2::Const::REDIRECT at the end?
>> >
>> > No, the module returns Apache2::Const::MOVED_TEMPORARILY, setting the
>> > Location header by using $r->err_headers_out
>>
>> $ perl -MApache2::Const=REDIRECT,HTTP_MOVED_TEMPORARILY -le 'print
>> REDIRECT; print HTTP_MOVED_TEMPORARILY'
>> 302
>> 302
>>
>> Guess what that means.
>
>
> That means REDIRECT and HTTP_MOVED_TEMPORARILY are synonyms, but that does
> not explain the Apache2::SubRequest::run and $subr->status returned values
> !!!! ;-)
>
>
>>
>> Torsten
>>
>> --
>> Need professional mod_perl support?
>> Just hire me: torsten.foertsch@gmx.net
>>
>
>
------=_Part_2686_20414469.1222339021432
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Does anyone has additional documentation on Apache2::SubRequest::run and Apache2::SubRequest::status returned values ?
Gaetan
2008/9/22 titetluc titetluc
<>
2008/9/19 Torsten Foertsch
<>
On Fri 19 Sep 2008, titetluc titetluc wrote:
> > Does your mod_perl one return Apache2::Const::REDIRECT at the end?
>
> No, the module returns Apache2::Const::MOVED_TEMPORARILY, setting the
> Location header by using $r->err_headers_out
$ perl -MApache2::Const=REDIRECT,HTTP_MOVED_TEMPORARILY -le 'print
REDIRECT; print HTTP_MOVED_TEMPORARILY'
302
302
Guess what that means.
That means REDIRECT and HTTP_MOVED_TEMPORARILY are synonyms, but that does not explain the Apache2::SubRequest::run and $subr->status returned values !!!! ;-)
Torsten
--
Need professional mod_perl support?
Just hire me:
------=_Part_2686_20414469.1222339021432--