in reply to Re: Problem with proxy and LWP
in thread Problem with proxy and LWP
Unfortunately, I won't be able to change the customer's firewall. Here's my latest attempt:
and the output is:use strict; use warnings; use LWP::UserAgent; use LWP::Authen::Ntlm; use HTTP::Request::Common; print "creating agent\n"; my $ua = LWP::UserAgent->new(keep_alive=>1); $ua->timeout(10); print "setting credentials\n"; $ua->credentials('http://192.168.1.6:8080', '', 'IR\\nicolew', 'asdf') +; my $req = GET 'http://www.yahoo.com'; print "Getting site...\n"; my $res = $ua->request($req); print "returning info\n"; if ($res->is_success) { print $res->decoded_content; } else { print $res->status_line, "\n"; } exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem with proxy and LWP
by ladyscifi (Novice) on Aug 04, 2011 at 16:48 UTC | |
by ladyscifi (Novice) on Aug 11, 2011 at 19:17 UTC |