Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- A pipe or FH equivalent of LWP::UserAgent ?
- Peter Billam
February 25, 2005, 8:12 pm
rate this thread
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
- Ilya Zakharevich
February 25, 2005, 11:58 am