A pipe or FH equivalent of LWP::UserAgent ?

From: Peter Billam (peter_at_pjb.dpiwe.tas.gov.au)
Date: 02/25/05


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


Relevant Pages

  • [NT] Poisoning Cached HTTPS Documents in Internet Explorer
    ... Get your security news from a reliable source. ... "poison" a user's browser cache with a malicious document that will later ... The attacker can exploit this vulnerability for "replacing" HTML ... to communicate with a malicious web server over HTTPS without the browser ...
    (Securiteam)
  • RE: [Full-Disclosure] How big is the danger of IE?
    ... The following link details compromised/malicious web servers infecting ... the web server configuration to append the script to all files served by ... method used to compromise the servers. ... switching to another browser may significantly reduce ...
    (Full-Disclosure)
  • RE: [Full-Disclosure] How big is the danger of IE?
    ... The following link details compromised/malicious web servers infecting ... the web server configuration to append the script to all files served by ... method used to compromise the servers. ... switching to another browser may significantly reduce ...
    (Full-Disclosure)
  • Re: ampersand in urls when using xhtml 1.0 strict
    ... My web server is clearly seeing & and the browser is ... After including this header I was able to remove the encoded ... First, this is very strange because if your browser was displaying the page as HTML, then it was already receiving a content type header from the web server telling it that the page was HTML, or else there was no header and the browser was treating it as HTML by default. ...
    (comp.infosystems.www.authoring.html)
  • Re: Control referring domain, another HTTP_REFERER option?
    ... If you trust the user's browser, ... so they could share a database, the referring web server could leave ... Cookies are designed not to work that way. ...
    (comp.lang.php)