in reply to How to make LWP::Simple use a proxy?
I think they mean the HTTP_PROXY environment-variable, so in your script you could set something like: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).
before you create the user agent.$ENV{'HTTP_PROXY'}='http://proxy:3128/';
|
---|