Jonas:
> in this application, i need keys to be delivered with the url, some
with
> and some without value (for example 'script.py?key1&key2=foo'.
You are missing an "=" sign after key1. Confront with this example:
from cgi import parse_qsl
QS = "x=1&y=2&x=3&z=&y=4"
print parse_qsl(QS)
print par
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 requ
On 20/02/2005 Daniel Lichtenberger wrote:
> > any suggestions about how to make form.keys() contain the blank keys
> > as well?
>
> "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
Hi,
Jonas Meurer wrote:
> if i request the script with script.py?key1&key2=foo, it will output:
> list keys with form.keys():
> key2
>
> any suggestions about how to make form.keys() contain the blank keys
> as well?
"key1" isn't a valid parameter, to supply an empty key you would write
script.
hello,
i'm quite new to python. currently i try to write a web application with
python cgi scripts.
in this application, i need keys to be delivered with the url, some with
and some without value (for example 'script.py?key1&key2=foo'.
i've searched the internet, and already figured out that i n