W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2007

Re: [i81] Content Negotiation for media types

From: Julian Reschke <julian.reschke@gmx.de>
Date: Sun, 04 Nov 2007 15:00:23 +0100
Message-ID: <472DD077.6040105@gmx.de>
To: LMM@acm.org
CC: 'Javier Godoy' <rjgodoy@hotmail.com>, ietf-http-wg@w3.org

Larry Masinter wrote:
> ...
> The point about changing the 406 requirement so that it matches reality
> should also be added to the issue.
> ...

Looking at "Accept"...:

"If no Accept header field is present, then it is assumed that the 
client accepts all media types. If an Accept header field is present, 
and if the server cannot send a response which is acceptable according 
to the combined Accept field value, then the server SHOULD send a 406 
(not acceptable) response." -- 

and "406"...:

"Note: HTTP/1.1 servers are allowed to return responses which are not 
acceptable according to the accept headers sent in the request. In some 
cases, this may even be preferable to sending a 406 response. User 
agents are encouraged to inspect the headers of an incoming response to 
determine if it is acceptable." -- 

...it seems that the spec needs to be clarified anyway: the description 
of "Accept" says "SHOULD send 406", but the description of 406 makes it 
sound like something OPTIONAL.

I think the latter is closer to reality...

BR, Julian
Received on Sunday, 4 November 2007 14:00:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:10:43 UTC