Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl-Sensitive Sunglasses
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.