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: Mon, 04 Apr 2011 18:17:22 +0200
Message-ID: <4D99EF12.80401@gmx.de>
To: Cameron Heavon-Jones <cmhjones@gmail.com>
CC: mike amundsen <mamund@yahoo.com>, public-html@w3.org
On 04.04.2011 18:08, Cameron Heavon-Jones wrote:
> Since PUT and DELETE responses are non-cachable, the default behaviour to avoid protocol inefficiencies should be to return no content - unless the client has specifically requested content.
> A html representation is a valid response body for PUT and DELETE, especially if it was the format of request generation as is the case from forms. It need not be a full representation of the resource, which would be overkill for an operation over that representation, but should be a formatted response to the request - WebDAV has chosen plain text to represent this.

...WebDAV (the spec) hasn't chosen any specific format.

The tricky question is: how does the server know that a PUT was the 
result of a form submission?

Checking the content type appears to be fragile; in particular if later 
on we want to extend the set of types.

> ...

BR, Julian
Received on Monday, 4 April 2011 16:18:00 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:11 UTC