Re: [MP2]how to catch the response body of a subrequest?

[prev] [thread] [next] [Date index for 2005/05/27]

From: Stas Bekman
Subject: Re: [MP2]how to catch the response body of a subrequest?
Date: 16:59 on 27 May 2005
Torsten Foertsch wrote:
> Hi,
> 
> is it possible to run a subrequest and send the output to a 
> PerlResponseHandler instead of the browser. I think it can be done with a 
> filter that gathers all output ...
> 
> Is there anything available like
> 
> $subr=$r->lookup_uri(...);
> $response_body=$subr->run_with_output_to_me;
> if( $subr->status==200 ) {
>   my $xyz=Storable::thaw( $response_body );
>   ...
> }

http://search.cpan.org/dist/Apache-TrapSubRequest/lib/Apache/TrapSubRequest.pm

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

[MP2]how to catch the response body of a subrequest?
Torsten Foertsch 13:34 on 27 May 2005

Re: [MP2]how to catch the response body of a subrequest?
Stas Bekman 16:59 on 27 May 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52