Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Yet another LWP question

by chromatic (Archbishop)
on Jun 29, 2000 at 04:24 UTC ( #20304=note: print w/replies, xml ) Need Help??


in reply to Yet another LWP question

A quick glance at `perldoc lwpcook` gives the following:
use LWP::UserAgent; $ua = new LWP::UserAgent; $ua->proxy(['http', 'ftp'] => 'http://proxy.myorg.com'); $req = new HTTP::Request 'GET',"http://www.perl.com"; $req->proxy_authorization_basic("proxy_user", "proxy_password"); $res = $ua->request($req); print $res->content if $res->is_success;
If your OS supports it, you might also be able to set HTTP_PROXY and FTP_PROXY environment variables. But I'd do it the LWP Cookbook way.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://20304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2021-05-06 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (69 votes). Check out past polls.

    Notices?