On Tuesday 10 June 2003 6:27 pm, Neil Schemenauer wrote:
> On Tue, Jun 10, 2003 at 06:19:57PM -0400, Mark Bucciarelli wrote:
> > get_path() returns a double--form_demo/form_demo. I think this
> > is a problem with how the native Python web server is parsing the
> > CGI variables--both the script name and the path are the same.
>
> That's not right. The full path should be SCRIPT_NAME + PATH_INFO.
It is indeed server.py. Just for the record (and for a bit of peer
review ...)
the PATH_INFO cgi variable is the stuff in the URL that comes after
the script name and before the question mark.
For example, the URL
/cgi-bin/myscript.cgi/some/more/path/info
breaks out into
SCRIPT_PATH = /cgi-bin/myscript.cgi
PATH_INFO = /some/more/path/info
The idea was that you could pass context into your cgi script.
Now, with Quixote, isn't everything a script? I mean, shouldn't
PATH_INFO always be empty?
BTW, this really was a bit of an archeological excursion. While
researching, I turned up phrases like:
For example, say you want to reference a file on your Gopher server.
and
This string will usually be an information query, i.e. what the user
wants to search for in the archie databases
Cheers,
Mark