CGI question

Dan Sommers me at
Thu Jan 5 12:45:01 CET 2006

On 5 Jan 2006 02:54:25 -0800,
"sophie_newbie" <paulgeeleher at> wrote:

> I was wondering if there was a way to extract everyting in the url
> after the "?" question mark in one go.


> Is there any easy way of getting the results.cgi program to read this
> entire URL (or even just the bit after the question mark) ...

import os
query_string = os.environ['QUERY_STRING']


Dan Sommers

More information about the Python-list mailing list