brain cramp: emulating cgi.FieldStorage

Chris Curvey ccurvey at gmail.com
Thu Sep 15 17:04:15 CEST 2005


figured it out...

os.environ["QUERY_STRING"] = "foo=bar"
fs = cgi.FieldStorage()
functionToBeTested(fs)




More information about the Python-list mailing list