Logged In: YES user_id=6380 I'd be willing to have this fixed, if I could understand the problem. Can you show an example program and how it does not do what you expect?
Logged In: YES user_id=642367 #!/usr/bin/env python2 # source of test.cgi # # when called with a URL like # http://www.example.com/test.cgi?toggle # this will only print 'yes' if form # variables without '=' are allowed. # These are called ISINDEX values, and # are sent to the commandline of the cgi # program, if any. Since the commandline # is searched for form variables, it's # clear that they were intended to be # included when parsing incoming form # variables, but the current cgi.py # discards them because they do not # conform to a pair of strings separated # by an equals sign. # # This behavior is not strictly necessary # for implementing any cgi program, but # has a positive marketing value, the # difference between # http://www.example.com/test.cgi?myname # and # http://www.example.com/test.cgi?user=myname import cgi form = cgi.FieldStorage(keep_blank_values=1) print 'Content-type: text/plain\n\n' if form.has_key('toggle'): print 'yes' else: print 'no'
Logged In: YES user_id=6380 If you want arguments that don't follow the keyword=value format, you can parse sys.argv yourself -- you don't need the cgi module for that. I'm rejecting this request.