A pipe or FH equivalent of LWP::UserAgent ?
From: Peter Billam (peter_at_pjb.dpiwe.tas.gov.au)
Date: 02/25/05
- Next message: David Christensen: "Re: proposal for new module -- Math::TriangularNumbers"
- Previous message: Martien Verbruggen: "Re: How can I install the DBI on Solaris"
- Next in thread: Ilya Zakharevich: "Re: A pipe or FH equivalent of LWP::UserAgent ?"
- Reply: Ilya Zakharevich: "Re: A pipe or FH equivalent of LWP::UserAgent ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Feb 2005 14:12:10 +1100
Greetings. Our front-line web server mostly does Apache Rewrites,
but we also have a little cgi script running there which does some
authentication and then uses LWP::UserAgent to
my $ua = LWP::UserAgent->new;
...
$req = HTTP::Request->new("GET" =>"$URL");
...
my $res = $ua->request($req);
and then gives the whole result to the browser. The trouble is, it's
now being used on some large pages, which is running our front-line
server out of memory and causes browser-timeouts and user-retries :-(
What I think I need is some way of reading the data from the Request
a few Kb at a time, and feeding it to the browser in real time,
as it comes in :-)
Dear LWP and HTTP folks, what's the way to do this ?
-- All help gratefully received, Regards, Peter Peter Billam, DPIWE/ILS/CIT/Servers, hbt/lnd/l8, 6233 3061
- Next message: David Christensen: "Re: proposal for new module -- Math::TriangularNumbers"
- Previous message: Martien Verbruggen: "Re: How can I install the DBI on Solaris"
- Next in thread: Ilya Zakharevich: "Re: A pipe or FH equivalent of LWP::UserAgent ?"
- Reply: Ilya Zakharevich: "Re: A pipe or FH equivalent of LWP::UserAgent ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|