Re: CGI scripts / Location header

Darren New (
Fri, 13 Oct 1995 13:59:47 +0100

> One thing that's being lost here is that the response from the CGI
> program and the GET requests are separate operations by the browser.

Not the way the problem was stated.

> Your questions assumes (or implies) that it is treated as a "single"
> operation, of which you have total control. You don't! Specifying the
> Location header merely instructed the server to return a redirect
> response.

Incorrect. This is only true if the Location: header has a URL after it.
If it has a local file after it, the server delivers the file without
issuing a redirect. Read the spec.

Of course, if you *are* redirecting to a different URL, then everything
you've said applies.