This seems to have worked, with some exceptions. (BTW - thanks!)
I added $ua->proxy(['http','ftp'],'http://my.proxyserver.com:83');
The only problem seems to be that my proxy requires a password, and
reading throuhg perldoc LWP::UserAgent, I cannot find how I am
supposed to pass the username and pass that the proxy server
requires! I see how to pass them if the remote server needs them,
but not the proxy ones.
Are you at all familiar with this?
What does this little button do . .<Click>;
"USER HAS SIGNED OFF FOR THE DAY" | [reply] [Watch: Dir/Any] [d/l] [select] |
use LWP::UserAgent;
#..... usual stuff .....#
$ua = new LWP::UserAgent;
$ua->proxy(['http', 'ftp'] => 'http://your_proxy.address.com:');
my $req = new HTTP::Request 'GET',
"http://www.perlmonks.org";
$req->proxy_authorization_basic("$user_name","$user_password");
$res = $ua->request($req);
(Obtained through Super Search for "LWP proxy password". Super Search is also your friend!) | [reply] [Watch: Dir/Any] [d/l] |
Disregard my last - I did some searching on the links that
one of the other responders had posted (thanks folks) and
discovered $req->proxy_authorization_basic
Again, thanks everyone.
What does this little button do . .<Click>;
"USER HAS SIGNED OFF FOR THE DAY" | [reply] [Watch: Dir/Any] [d/l] [select] |