W3C home > Mailing lists > Public > www-html@w3.org > November 2012

The document's address

From: Nicholas Shanks <nickshanks@gmail.com>
Date: Wed, 21 Nov 2012 14:12:52 +0000
Message-Id: <DF0A84C4-AEAB-4716-B23F-FB3BA48BDE3C@gmail.com>
To: W3 HTML Public List <www-html@w3.org>
The definition of the document's address:
doesn't mention if the Content-Location header should be taken into account.

For example say when creating a new resource, you present a warning but the resource was created anyway.

POST /collection HTTP/1.1

HTTP/1.1 201 Created
Location: /collection/1
Content-Location: /collection/1/warnings

<p>Your resource was created, but the following conditions were noted. Please resolve them if they are not correct:

followed by a form. If the action of the form is the empty string, should the form be submitted to /collection or /collection/1/warnings ?

Ideologically, the address bar should update to the Content-Location of the response body, as that is what is being displayed, and there would be no issue ― forms with empty action attributes would submit to  /collection/1/warnings ― but I believe web browser UAs don't do this at present.

― Nicholas.
Received on Wednesday, 21 November 2012 14:13:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:25 UTC