----- Original Message ----- 
From: "Jody Belka" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 02, 2003 2:29 PM
Subject: Re: URL wierdness...


> IMAP HILLWAY\ said:
> >
> > Now... this works fine for almost every URL I can think of apart from 2:
> > http://www.acxiom.co.uk & http://www.acxiom.com
> > These 2 both return "500 Internal Server Error" but work fine if you go
> > to them with a browser!
>
> bit of checking and it seems that they're using the Accept-Language
> header, and don't imagine you might not send it. if you add that to the
> request (a simple en or en-us will do the trick) then things work
> properly. really bad form on their side of course.
>
> Jody


Thanks Jody.

That did the trick.... new code is:

<snip>
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Request::Common;

my $browser;
my $ua = new LWP::UserAgent;
$ua->agent('Mozilla/5.0');
$ua->timeout(15);
my $url = 'http://www.acxiom.co.uk';
my $req = new HTTP::Request;
my $res = $ua->request(GET $url, 'Accept-Language' => 'en');
</snip>


Reply via email to