[9411] in www-talk@info.cern.ch
Re: what's a CGI to do?...
daemon@ATHENA.MIT.EDU (David Robinson)
Mon Dec 4 11:25:09 1995
Date: Mon, 4 Dec 95 16:09 GMT
From: drtr1@cus.cam.ac.uk (David Robinson)
To: dmk@allegra.att.com
Cc: drtr1@cus.cam.ac.uk, www-talk@w3.org
Resent-From: www-talk@w3.org
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.
David Robinson.