W3C home > Mailing lists > Public > www-validator@w3.org > September 2009

Re: checklink: User-Agent causes HTTP error 406

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Tue, 8 Sep 2009 20:47:04 +0300
To: www-validator@w3.org
Message-Id: <200909082047.04232.ville.skytta@iki.fi>
On Sunday 30 August 2009, Kevin Keane wrote:
> On a number of Web sites, check-link returns with an HTTP error 406,
> even with correct Accept header settings, and even when wget and links
> can access the site without a problem.
> Through trial and error, I found that on at least one site, the culprit
> is the User-Agent header. Adding the line
>   $request->header('User-Agent', 'W3C-linkcheck');
> before line 1307 solves this issue. Normally, the user agent is
> W3C-checklink/4.5 [4.154] libwww-perl/5.805

They might be triggering on "libwww-perl" in the user agent string.  I suggest 
contacting such sites and reporting the bug/asking for an explanation why.
Received on Tuesday, 8 September 2009 17:47:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:38 GMT