Forum Discussion
hooleylist
Feb 28, 2007Cirrostratus
Hey citizen_elah,
I was thinking along the same lines, until I considered that the Location value must be an absolute URL, including the protocol. So the Location header contains "http(s)://whatever..."
ftp://ftp.rfc-editor.org/in-notes/rfc2616.txt
14.30 Location
The Location response-header field is used to redirect the recipient
to a location other than the Request-URI for completion of the
request or identification of a new resource. For 201 (Created)
responses, the Location is that of the new resource which was created
by the request. For 3xx responses, the location SHOULD indicate the
server's preferred URI for automatic redirection to the resource. The
field value consists of a single absolute URI.
Location = "Location" ":" absoluteURI
An example is:
Location: http://www.w3.org/pub/WWW/People.html
Aaron