W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > May to August 1996

Re: 201 created on PUT Method etc

From: Jeffrey Mogul <mogul@pa.dec.com>
Date: Mon, 19 Aug 96 11:00:34 MDT
Message-Id: <9608191800.AA10779@acetes.pa.dec.com>
To: "John C. Mallery" <jcma@ai.mit.edu>
Cc: http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/1404
   Who wants to write file and not know if there is a version conflict?

One way to solve this in HTTP/1.1 is to do:

	PUT /foo HTTP/1.1
	If-Match: "1ad18937shjd"

if the previously known Etag: for the resource was "1ad18937shjd",
or (if no Etag is available, but a Last-modified time is available)

	PUT /foo HTTP/1.1
	If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT

This latter approach is a little risky, since if the resource
is modified more than once during a given second, a conflict
could arise.

Received on Monday, 19 August 1996 11:09:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:40:18 UTC