Keep It Simple, Stupid | |
PerlMonks |
Re: How to make LWP::Simple use a proxy?by Tomte (Priest) |
on May 04, 2004 at 16:37 UTC ( [id://350418]=note: print w/replies, xml ) | Need Help?? |
From the pod of LWP::Simple : The user agent created by this module will identify itself as "LWP::Simple/#.##" (where "#.##" is the libwww-perl version number) and will initialize its proxy defaults from the environment (by calling $ua->env_proxy). And accordingly looked up in the pod of LWP::UserAgent (emphasis again mine): Load proxy settings from *_proxy environment variables. You might specify proxies like this (sh-syntax): So just set up the environment accordingly, and LWP::Simple DWYM.
regards,
An intellectual is someone whose mind watches itself.
In Section
Seekers of Perl Wisdom
|
|