questions concerning cgi.FieldStorage(keep_blank_values=1)
Daniel Lichtenberger
daniel_usenet at yahoo.de
Sun Feb 20 17:53:41 EST 2005
Jonas Meurer wrote:
>>"key1" isn't a valid parameter, to supply an empty key you would write
>>script.py?key1=&key2=foo
>>
>>Then cgi.FieldStorage also includes key1.
>
> great, it works. but is there no way to use single keywords as GET
> argument?
You could manually parse the request string (CGI stores the request
string as an environment variable, you can retrieve it via
os.environ["REQUEST_STRING"]), but why not add "=1" (or "=") to your
keywords?
bye,
Daniel
--
http://perplex.schmumpf.de/
[visit for regular email address]
More information about the Python-list
mailing list