Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to make LWP::Simple use a proxy?

by eXile (Priest)
on May 04, 2004 at 16:37 UTC ( [id://350417]=note: print w/replies, xml ) Need Help??


in reply to How to make LWP::Simple use a proxy?

From the LWP::Simple manpage:
The user agent created by this module will identify itself as "LWP::Simple/#.##" (where "#.##" is the libwww-perl version number) an +d will initialize its proxy defaults from the environment (by calling $ua->env_proxy).
I think they mean the HTTP_PROXY environment-variable, so in your script you could set something like:
$ENV{'HTTP_PROXY'}='http://proxy:3128/';
before you create the user agent.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-03-28 23:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found