criz has asked for the wisdom of the Perl Monks concerning the following question:
The output file always has these headers, which I want to remove:$req = HTTP::Request->new(GET => $myrequeststring); $req->authorization_basic('username','password'); $res = $ua->request($req); #Check the request if ($res->is_success) { print OUT $ua->request($req)->as_string; } else { print STDOUT "Error: " . $res->status_line . "\n"; }
Thanks in advance for any help.HTTP/1.1 200 OK Cache-Control: private Connection: close Date: Mon, 06 Jun 2005 16:41:28 GMT Server: Microsoft-IIS/5.0 Content-Length: 420 Content-Type: text/html Expires: Mon, 06 Jun 2005 16:40:29 GMT Client-Date: Mon, 06 Jun 2005 16:41:22 GMT Client-Peer: 204.255.44.151:80 Client-Response-Num: 1 Set-Cookie: ASPSESSIONIDQQQQGUUO=JIPPOIADCAKNEGMGFAHOGJAE; path=/ Title: Empty result
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing http headers from LWP::Useragent request
by davidrw (Prior) on Jun 06, 2005 at 16:46 UTC | |
by criz (Novice) on Jun 06, 2005 at 16:59 UTC | |
by davidrw (Prior) on Jun 06, 2005 at 17:11 UTC | |
by criz (Novice) on Jun 06, 2005 at 18:22 UTC |