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

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

From: Torsten Foertsch
Subject: [MP2]how to catch the response body of a subrequest?
Date: 13:34 on 27 May 2005
--nextPart1398482.RZz8XuZUY6
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

is it possible to run a subrequest and send the output to a=20
PerlResponseHandler instead of the browser. I think it can be done with a=20
filter that gathers all output ...

Is there anything available like

$subr=3D$r->lookup_uri(...);
$response_body=3D$subr->run_with_output_to_me;
if( $subr->status=3D=3D200 ) {
  my $xyz=3DStorable::thaw( $response_body );
  ...
}

Torsten

--nextPart1398482.RZz8XuZUY6
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBClyHzwicyCTir8T4RAkU7AJ9skqeM/0NqHQzQ+k0UVPsp0w8kqwCfd7Mc
ZI59JXb4/CctFkKQlViLFLg=
=rETi
-----END PGP SIGNATURE-----

--nextPart1398482.RZz8XuZUY6--

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

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