Hi,
I am unable to connect to any URL using LWP. I am behind a proxy! I've read usual trouble shoot tips but was unable to make things work.Follwoing is the code:
#!/usr/bin/perl -w
# Uses
use strict;
use LWP 5.64;
# URL
my $url = 'http://google.com';
# User Agent Object
my $browser = LWP::UserAgent->new;
# $browser->proxy([qw(http ftp)], 'http://google.com:80');
$browser->env_proxy;
my $response = $browser->get( $url);
die "Couldn't get $url -- " ,$response->status_line
unless $response->is_success;
even if I comment out env_proxy and uncheck comment from
$browser->proxy([qw(http ftp)], 'http://google.com:80'
.It is not working.
Following are my proxy settings:
Address:Dialup
Port:80
I am looking forward to your help :)
Shudh