W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 1997

Re: What method for Location?

From: Koen Holtman <koen@win.tue.nl>
Date: Tue, 11 Mar 1997 23:01:27 +0100 (MET)
Message-Id: <199703112201.XAA26473@wsooti08.win.tue.nl>
To: Yuan John Jiang <yjj@mci.net>
Cc: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/2614
Yuan John Jiang:
>I could not find the answer from scanning through the spec.
>If my client does a "POST URI HTTP/1.1" and the server responds
>with "Location: NEWURL"
>What shall my client do next?  Shall I do "POST NEWURL ..."
>or "GET NEWURL ..."?

That depends on the status code of the response message the Location is in,
so you have to look at section 10.3 of the spec.  And note the notes in
there about what some clients actually do.

Aside: I believe that if you just output 

Location: <full URL>

in a CGI script, the server will send a 302 status code.  To get a 303 status
code, do

Location: <full URL>
Status: 303 See Other


Received on Tuesday, 11 March 1997 14:03:51 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:01 UTC