use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->proxy(['http', 'ftp'] => 'http://proxy.myorg.com'); my $req = HTTP::Request->new('GET',"http://www.perl.com"); $req->proxy_authorization_basic("proxy_user", "proxy_password"); my $res = $ua->request($req); print $res->content if $res->is_success;
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
In reply to (jeffa) Re: LPW and proxies
by jeffa
in thread LWP and proxies
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |