W3C home > Mailing lists > Public > www-validator@w3.org > November 2015

Add Accept-Header in HTTP Request

From: Florian Best <w3c@florianbest.de>
Date: Sat, 21 Nov 2015 11:06:20 +0100
To: www-validator@w3.org
Message-ID: <5650421C.7070504@florianbest.de>

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 Best
Open-Source Software Engineer
Received on Sunday, 22 November 2015 20:20:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:14 UTC