W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2006

Re: PUT, side effects and 201 Created?

From: Mark Baker <distobj@acm.org>
Date: Mon, 3 Apr 2006 20:01:39 -0500
Message-ID: <c70bc85d0604031801g1aee2eb4u8c8d7467a5dbf10b@mail.gmail.com>
To: "Mark Nottingham" <mnot@yahoo-inc.com>
Cc: ietf-http-wg@w3.org

On 4/3/06, Mark Nottingham <mnot@yahoo-inc.com> wrote:
> > If a new resource is created, the origin server MUST inform the
> > user agent via the 201 (Created) response.
> So, if I PUT something to /foo, and it has the side effect if
> creating /foo;2006-04-03, is the response required to be a 201 Created?

Seems so.

> I.e., read literally, the above requirement requires a 201 Created
> when PUT results in *any* resource being created -- even as a side
> effect.
> This is IMO unnecessarily constraining, and should be relaxed; e.g.,
> changed to something like
> "If a new resource is created at the Request-URI, the origin server
> MUST inform the user agent via the 201 (Created) response."

Hmm, *that* seems more constraining to me; could the server not just
return a Location header with value "/foo;2006-04-03" in the 201?

Mark Baker.  Ottawa, Ontario, CANADA.       http://www.markbaker.ca
Received on Tuesday, 4 April 2006 01:01:46 UTC

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