W3C home > Mailing lists > Public > www-talk@w3.org > September to October 1995

Re: CGI scripts / Location header

From: Brian Behlendorf <brian@organic.com>
Date: Thu, 12 Oct 1995 00:31:50 -0700 (PDT)
To: Daniel DuBois <ddubois@rafiki.spyglass.com>
Cc: www-talk@www0.cern.ch
Message-Id: <Pine.SGI.3.91.951012002608.18779K-100000@fully.organic.com>
On Wed, 11 Oct 1995, Daniel DuBois wrote:
> Scenario:  User requests a URL that points to an existant CGI script.  CGI
> script returns a "Location: localfile.html" header, indicating a
> 'server-side' redirect, and this file doesn't exist.

Let me use different terminology.  C = client, S = server

C: GET /script.cgi
S: 302 Moved Temporarily
   Location: host://server/other-file.html

C: GET /other-file.html

S: 404 Not Found

Whether this is done as two separate connections or one using keep-alive 
doesn't really matter, I don't think.

BTW, any reason why Location *has* to be an absolute URL and not a 
relative one?  That's always been a burden - Netscape and the Microsoft 
Explorer handle relative paths alright.

> Is it proper to send a 404 Not Found message?  

I think so.  The user agent interface should clearly show it was the 
request for the second resource, and not the first, which caused the 


brian@organic.com  brian@hyperreal.com  http://www.[hyperreal,organic].com/
Received on Thursday, 12 October 1995 04:24:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:58 UTC