W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > May to August 1996

HTTP/1.1, queries, and redirect

From: Dave Kristol <dmk@allegra.att.com>
Date: Wed, 21 Aug 96 09:35:31 EDT
Message-Id: <9608211335.AA16156@zp>
To: http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com
Suppose a search service moves from MachineA to MachineB.  MachineA
redirects the requests.  Should MachineA affix the query string to
the Location header?  That is, if MachineA receives URL
	/search?query
should it return a header
	Location: http://MachineB/search
or
	Location: http://MachineB/search?query
?

The specification gives no guidance.  Empirically, user agents just go
to wherever the Location header says to go.  So if the query string is
omitted, the search doesn't happen at MachineB, because the user agent
doesn't concatenate the query string.  (And it probably shouldn't, in
truth.)

My server will append the query string on redirects that arise from the
server's configuration.  (CGIs can return whatever.)  What do others do?

Dave
Received on Wednesday, 21 August 1996 06:40:28 EDT

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