Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Yet another LWP question

by chromatic (Archbishop)
on Jun 29, 2000 at 04:24 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://20304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-28 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found