Hi All,

I'm having trouble using WWW::Mechanize to parse ParcelForce's website (for tracking parcels). I've broken my script down to the simplest case possible (below) however still can't get over the first step (ie retrieving the page) - the idea is that I will then fill out and submit the retrieved form.

Code:

#!/usr/bin/perl -w
use strict;
use WWW::Mechanize;
my $agent = WWW::Mechanize->new( autocheck => 1 );
$agent->get("http://www.parcelforce.com:80/portal/pw/track";);

The error I get is...
"Error GETing http://www.parcelforce.com:80/portal/pw/track: Internal Server Error at track.pl line 5"


I tried simplifying the URL down to http://www.parcelforce.com/ and still have the same problem.
Using WWW:Mechanize on other URLs (e.g. perl.com) works fine and the page is retrievable using wget so I don't think it's my network at fault.


Can anyone suggest any other ideas?

TIA



Reply via email to