in reply to Getting a webpage through proxy
Note that $response is not just the text of the gotten page, it is an HTTP::Response object. See the HTTP::Response docs for info on how to handle the response.require LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->proxy('http', 'http://proxy.sn.no:8001/'); $request = HTTP::Request->new('GET', 'http://www.perlmonks.org'); $response = $ua->request($request);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting a webpage through proxy
by Baz (Friar) on Jun 09, 2005 at 22:08 UTC |