[Web-SIG] IIS and Python CGI - how do I see more than just the form data?
arw1961 at yahoo.com
Wed Apr 7 16:06:15 CEST 2010
--- On Tue, 4/6/10, J.D. Main <jdmain at comcast.net> wrote:
> From: J.D. Main <jdmain at comcast.net>
> Subject: Re: [Web-SIG] IIS and Python CGI - how do I see more than just the form data?
> To: web-sig at python.org
> Date: Tuesday, April 6, 2010, 9:25 PM
> Thanks Aaron,
> I think I will explore the WSGI interface. However, I
> did learn a trick using
> the OS Module:
> import cgi, os
> formfields = cgi.FieldStorage()
> http_stuff = os.environ .....
Yes, that will work too. In fact the CGI interface to WSGI
works like this. The advantage to using WSGI is that it
makes it possible to move your application to other configurations
more easily (in theory) and it's just a tiny bit more high level.
Best regards, -- Aaron Watters
More information about the Web-SIG