Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
www::mechanize GET not working for this URL 'https://ardsbc.erecruit.co.uk/'. Please can you tell me what could be the problem?
use strict; use WWW::Mechanize; my $url = "https://ardsbc.erecruit.co.uk/"; my $mech = WWW::Mechanize->new(); $mech->agent_alias('Mac Safari'); $mech->get($url); exit;
I tried changing request headers to what I get in n/w monitor(Firefox browser), but no use, still produces the same error(Error in Connecting to URL).
This is the response headers I am getting when I print the response string,
Content-Type: text/plain Client-Date: Wed, 27 Aug 2014 04:34:35 GMT Client-Warning: Internal response
I later checked the robots.txt of that site & I am fully aware of what it is written there, but just wanted to know why it is not GETting even if I am mimicking it using the same Firefox request headers!Why is Mechanize incapable of GETting that URL? Any clues?
Thanks a lot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: www::mechanize $mech->get(); not working for a particular URL!
by Corion (Patriarch) on Aug 27, 2014 at 11:31 UTC | |
by Anonymous Monk on Aug 27, 2014 at 11:35 UTC | |
by Corion (Patriarch) on Aug 27, 2014 at 12:01 UTC | |
by Anonymous Monk on Aug 27, 2014 at 12:04 UTC | |
|
Re: www::mechanize $mech->get(); not working for a particular URL!
by Anonymous Monk on Aug 27, 2014 at 07:43 UTC | |
by Anonymous Monk on Aug 27, 2014 at 08:05 UTC | |
by Anonymous Monk on Aug 27, 2014 at 11:49 UTC | |
by Anonymous Monk on Aug 27, 2014 at 12:02 UTC |