On Wed, 2005-09-21 at 07:34 -0400, Geoffrey Young wrote:
> > sub handler : method {
> >   my($class, $r) = @_;
> >   my $subr = $r->lookup_uri('/index.php?a=1&b=2');
> 
>     $r->assbackwards(0);
> 
> >   return $subr->run();
> > }
> 
> > And this works like a charm (the content on the php-script is parsed and
> > executed), except for the headers. I don't get any headers generated
> > from the php-script. Is there any way of getting them through to the
> > user?
> 
> try the above.

I've now tried any combination of:
( $r | $subr ) ->assbackwards( 0 | 1 );
The only one with any effect was: $r->assbackwards(1); which resulted in
no headers at all. Not quite what I was hoping for ;o)

But thanks anyway.

My gut feeling (nothing to go by, by the way) is that I somehow need to
tell apache2 that, it shouldn't strip the headers when running a
subrequest.

Maby I should just go back to apache1.3 & mod_perl, that does what I
want it to.

Or maby, the problem is that in
"xs/Apache2/SubRequest/Apache2__SubRequest.h" "mpxs_ap_run_sub_req" runs
"modperl_wbucket_flush" to make sure all that is printed before ->run()
is outputed, however this might (I havn't diged deep enough into the
code yet) send the headers, and the run the script forcing apache to
discart them.


-- 
  Morten Bøgeskov (email: [EMAIL PROTECTED])

Gallway's law of libraries : There ARE no answers, only crossreferences

Reply via email to