Re: Add Accept-Header in HTTP Request

Florian Best <w3c@florianbest.de>, 2015-11-21 11:06 +0100:
> Archived-At: <http://www.w3.org/mid/5650421C.7070504@florianbest.de>
> 
> Hello,
> 
> HTTP has the feature that a resource might have multiple
> representations. For example a resource might be available in text/html,
> application/xml and application/json.
> A client is able to choose a preferred format by adding the Accept HTTP
> header in its request including a quality-parameter.
> As the Accept header is not present in the request of the W3c HTML
> Validator my web services are either responding with 406 not acceptable
> or are serving the application/json response.
> 
> The W3C Validator should add the following HTTP request header:
> Accept: text/html; q=1, application/xhtml+xml; q=0.9, application/xml;
> q=0.8, */*; q=0.1

Rather than using the legacy W3C validator, you should consider instead
using the current W3C HTML Checker at https://validator.w3.org/nu/, which
does send an Accept header for all requests it makes.

  —Mike

-- 
Michael[tm] Smith https://people.w3.org/mike

Received on Monday, 23 November 2015 05:29:33 UTC