destined2doom has asked for the wisdom of the Perl Monks concerning the following question:
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:
even if I comment out env_proxy and uncheck comment from#!/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;
.It is not working. Following are my proxy settings:$browser->proxy([qw(http ftp)], 'http://google.com:80'
I am looking forward to your help :) ShudhAddress:Dialup Port:80