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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Cannot connect using LWP :behind Proxy
by William G. Davis (Friar) on Dec 29, 2004 at 06:49 UTC | |
by destined2doom (Initiate) on Dec 29, 2004 at 07:46 UTC | |
Re: Cannot connect using LWP :behind Proxy
by matija (Priest) on Dec 29, 2004 at 07:45 UTC |
Back to
Seekers of Perl Wisdom