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

-Jeff
Received on Monday, 19 August 1996 11:09:13 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:32:08 EDT