in reply to Getting a webpage through proxy
use LWP::UserAgent; #..... usual stuff .....# $ua = new LWP::UserAgent; $ua->proxy(['http', 'ftp'] => 'http://your_proxy.address.com:'); my $req = new HTTP::Request 'GET', "http://www.perlmonks.org"; $req->proxy_authorization_basic("$user_name","$user_password"); $res = $ua->request($req);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RE: Getting a webpage through proxy
by Anonymous Monk on Feb 07, 2001 at 22:36 UTC |