Re: CGI & Location

Last time, David Robinson uttered the following other thing:
> 
> What should a server do if a script returns
> 
> Location: /an/otherfile
> Myheader: value
> 
> should it
> a) ignore the Myheader, and simply act as if /an/otherfile was requested
> b) return /an/otherfile but add the Myheader header?
> 
> If b), should the headers added by the script take precedence over headers
> appropriate for the new document?
> 
> Apache and NCSA <= 1.3 do (a). I have heard a rumour that NCSA 1.5 does (b).
> I receiveda request from a user who wants Apache to do (b) so that he
> can add netscape 'Window-Target:' headers to the servers respose.

1.5 does (a) as well, at least from my test.  Looking at the code,
this should indeed be the case.

> I'd appreciate any input so that I can get a concensus to settle this point
> for the CGI specification.

Would a mechanism to allow the user to specify extra headers for urls
work better?  It seems kinda heavyweight to launch a CGI script just to
add a header.

Brandon

-- 
 Brandon Long         "I think, therefore, I am confused." -- RAW
 HTTPd/SDG/NCSA	  "Of all the things I've lost, I miss my mind the most."
 ECE/UIUC	    blong@uiuc.edu   http://www.uiuc.edu/ph/www/blong
 N9WUC		Don't worry, these aren't even my views.

Received on Wednesday, 24 January 1996 11:55:46 UTC