niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
A pipe or FH equivalent of LWP::UserAgent ?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Ilya Zakharevich
*nix forums Guru Wannabe


Joined: 25 Feb 2005
Posts: 219

PostPosted: Fri Feb 25, 2005 5:58 am    Post subject: Re: A pipe or FH equivalent of LWP::UserAgent ? Reply with quote

[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

PostPosted: Fri Feb 25, 2005 2:12 am    Post subject: A pipe or FH equivalent of LWP::UserAgent ? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Wed Jan 07, 2009 5:31 pm | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts equivalent of MAIL>SET FORWARD/USER=ME YOU on unix VAXman-@SendSpamHere.ORG VMS 4 Thu Jul 20, 2006 7:56 pm
No new posts equivalent to .qmail for outgoing? Bill Gradwohl Qmail 1 Thu Jul 20, 2006 3:37 pm
No new posts PIPE redirection as stream file ? pierre.bru@gmail.com VMS 2 Wed Jul 19, 2006 11:51 pm
No new posts Possible to do the equivalent of dlopen with an executabl... Kenny McCormack Solaris 14 Wed Jul 19, 2006 5:09 pm
No new posts Pipe problem and procmail Bostjan Muller Debian 0 Mon Jul 17, 2006 6:30 am

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
[ Time: 0.1974s ][ Queries: 20 (0.0870s) ][ GZIP on - Debug on ]