Gisle Aas <[EMAIL PROTECTED]> writes:

> James Turnbull <[EMAIL PROTECTED]> writes:
> 
> > The error I get is...
> > "Error GETing http://www.parcelforce.com:80/portal/pw/track: Internal
> > Server Error at track.pl line 5"
> 
> The server is confused by something in the request that LWP sends.

This is a buggy server that crashes unless the request sent have an
"Accept" header.  It does not appear to matter what you put in it, as
demonstrated by running:

  $ lwp-request -H Accept:foo http://www.parcelforce.com:80/portal/pw/track

In your app you can work around this problem by telling LWP to always
send an Accept header using code like:

  $argent->default_header(Accept => "text/*");

(The default_header method was introduced in LWP-5.800).

Regards,
Gisle

Reply via email to