jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
This is the first time I am trying some sample programs using WWW::Mechanize. I got this sample code from here
I got the below Error :-#!/usr/bin/perl -w use WWW::Mechanize; use Data::Dumper; use Storable; $url = 'http://www.census.gov/population/www/documentation/twps002 +7.html'; $m = WWW::Mechanize->new(); $m->get($url); $c = $m->content; print Dumper [ $c ];
But I could connect to the URL via web browser. Could anyone help me to resolve this issue ?$VAR1 = [ '500 Can\'t connect to www.census.gov:80 (connect: Unknown e +rror) ' ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize - Could not connect to a server
by chargrill (Parson) on Mar 20, 2007 at 03:20 UTC | |
| |
|
Re: WWW::Mechanize - Could not connect to a server
by Preceptor (Deacon) on Mar 20, 2007 at 11:44 UTC | |
|