Re: PUT and DELETE methods in 200 code

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.

Eek.

>> 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