W3C home > Mailing lists > Public > public-html@w3.org > April 2011

Re: PUT and DELETE methods in 200 code

From: Julian Reschke <julian.reschke@gmx.de>
Date: Tue, 05 Apr 2011 18:40:09 +0200
Message-ID: <4D9B45E9.9020903@gmx.de>
To: Cameron Heavon-Jones <cmhjones@gmail.com>
CC: mike amundsen <mamund@yahoo.com>, public-html@w3.org
On 05.04.2011 18:35, Cameron Heavon-Jones wrote:
> ...
>>> In the example of a combined agent (i'm thinking in the same vein of the old netscape navigator?) wouldn't the different functional contexts define different requests?
>>> Why would a WebDAV service initiate a request with "Accept: text/html" if it doesn't want html?
>> Unlikely on purpose, but there's a risk that they may be sending a default because they don't care.
> Ok, i think that's a different case then. If a UA is sending Accept that, as far as the service is concerned, it shouldn't be, then it should be given the response which is suitable for that UA. In the case of WebDAV, default to text/plain with a status message.

How do you intend to detect what kind of UA is doing the request?

> This amounts to recommending UA-sniffing, but in the case of UAs that "don't care" i think this is a measured response.


>> Also, absence of "Accept:" implies "accepts anything", so you wouldn't be able to do conneg by the spec.
> This is ok...the default for a UA which accepts anything can be to provide nothing - or just the text/plain message response.

Not convinced :-)
Received on Tuesday, 5 April 2011 16:40:42 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:35 UTC