|
|
|
|
|
|
| Author |
Message |
Ilya Zakharevich *nix forums Guru Wannabe
Joined: 25 Feb 2005
Posts: 219
|
Posted: Fri Feb 25, 2005 5:58 am Post subject:
Re: A pipe or FH equivalent of LWP::UserAgent ?
|
|
|
[A complimentary Cc of this posting was sent to
Peter Billam
<contact.html@www.pjb.com.au>], who wrote in article <slrnd1t5sa.b6q.peter@pjb.dpiwe.tas.gov.au>:
| Quote: | my $res = $ua->request($req);
|
....
| Quote: | Dear LWP and HTTP folks, what's the way to do this ?
|
Read the docs of request()?
Ilya |
|
| Back to top |
|
 |
Peter Billam *nix forums beginner
Joined: 25 Feb 2005
Posts: 26
|
Posted: Fri Feb 25, 2005 2:12 am Post subject:
A pipe or FH equivalent of LWP::UserAgent ?
|
|
|
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 |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Wed Jan 07, 2009 5:31 pm | All times are GMT
|
|
Mortgage Loans | Credit Card | Bankruptcy | Debt Consolidation | Debt Consolidation
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|