Re: [MP2]how to catch the response body of a subrequest?
by Titetluc Titetluc other posts by this author
Jul 1 2008 6:01AM messages near this date
Re: [MP2]how to catch the response body of a subrequest?
|
perl_free(my_perl) affecting mod_perl?
Less than half an hour to have an answer !!!!
And the code is correctly running (my work now is to understand this cryptic
code ;-))
Thanks a lot
2008/7/1 Torsten Foertsch <torsten.foertsch@[...].net> :
> On Tue 01 Jul 2008, titetluc titetluc wrote:
> > I am facing a problem: I would like to call sub-requests, but the content
> > of these sub-requests should not 'pollute' the main request.
>
> my $content='';
> my $subr=$r->lookup_uri( $tmpl );
> $subr->add_output_filter( sub {
> my ($f, $bb) = @_;
> while (my $e = $bb->first) {
> $e->read(my $buf);
> $content.=$buf;
> $e->delete;
> }
> return Apache2::Const::OK;
> } );
> $subr->run;
>
> Torsten
>
> --
> Need professional mod_perl support?
> Just hire me: torsten.foertsch@[...].net
>
Thread:
Titetluc Titetluc
Torsten Foertsch
Titetluc Titetluc
|