Re: what's a CGI to do?...
David Robinson (email@example.com)
Mon, 4 Dec 95 16:09 GMT
Dave Kristol wrote:
> > Yes. That is what servers currently do on internal redirection. However,
> > some servers also pass the CGI variables for the original request prefixed
> > by REDIRECT_. e.g. Client requests http://foo.com/script?args
> > The server (perhaps because of script being a CGI script returning a
> > Location: /bar header) internally redirects this to the CGI script
> > http://foo.com/bar
> > then this script gets the environment variables
> > SCRIPT_NAME=/bar
> > QUERY_STRING=""
> > REDIRECT_SCRIPT_NAME=/script
> > REDIRECT_QUERY_STRING=args
>Interesting. What server does that?
Apache, for one. And maybe recent versions of NCSA.