Add Accept-Header in HTTP Request

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

Kind regards
Florian

-- 
Florian Best
Open-Source Software Engineer

Received on Sunday, 22 November 2015 20:20:02 UTC