digamma has asked for the wisdom of the Perl Monks concerning the following question:
Running it returns "400 Invalid header received from browser". I know the proxy works because both Mozilla and Wget are happy to use it. It's possible that the proxy requires broken HTTP that both of those use and LWP::UserAgent doesn't, I suppose. Any help would be much appreciated.use strict; use LWP::UserAgent; our $ua = LWP::UserAgent->new; $ua->proxy('http', "http://localhost:8080"); my $url = "http://www.google.com"; my $response = $ua->get($url); print $response->status_line, "\n"; print $response->content, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP Proxy Madness
by ikegami (Patriarch) on Sep 20, 2004 at 17:07 UTC | |
|
Re: HTTP Proxy Madness
by sintadil (Pilgrim) on Sep 20, 2004 at 15:33 UTC | |
by Fletch (Bishop) on Sep 20, 2004 at 15:46 UTC | |
by sintadil (Pilgrim) on Sep 20, 2004 at 15:57 UTC |