Re: server applying PUT to a resource other than the request-URI

Helge Hess wrote:
> On 20.10.2008, at 22:35, Julian Reschke wrote:
>> And, again, how does a client find out about the request-URI? You will 
>> need
>>  If-None-Match: *
>> to avoid unintentional overwrites on /new.txt, but as soon as you 
>> include it, a conforming server will have to reject the request with 
>> 412 if /new.txt is already taken.
> So? Whats wrong with the 412? A client can easily deal with it.

Yes. But if the server returns 412, no resource was created, and the 
client still needs to figure out what request-URI to use.

Or are you suggesting that *any* unmapped URL is fine? What if the 
server wants to support both (client- and server-assigned URIs) in the 
same collection?

BR, Julian

Received on Tuesday, 21 October 2008 07:26:17 UTC