Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
[MP2]: strange behavior with Apache2::SubRequest::run
 

Index | Next | Previous | View Flat


titetluc at gmail

Sep 18, 2008, 7:31 AM


Views: 627
Permalink
[MP2]: strange behavior with Apache2::SubRequest::run

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

Subject User Time
[MP2]: strange behavior with Apache2::SubRequest::run titetluc at gmail Sep 18, 2008, 7:31 AM
    Re: [MP2]: strange behavior with Apache2::SubRequest::run perrin at elem Sep 18, 2008, 10:38 AM
    Re: [MP2]: strange behavior with Apache2::SubRequest::run titetluc at gmail Sep 19, 2008, 12:29 AM
    Re: [MP2]: strange behavior with Apache2::SubRequest::run torsten.foertsch at gmx Sep 19, 2008, 12:36 AM
        Re: [MP2]: strange behavior with Apache2::SubRequest::run titetluc at gmail Sep 21, 2008, 11:59 PM
    Re: [MP2]: strange behavior with Apache2::SubRequest::run titetluc at gmail Sep 25, 2008, 3:37 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.