post in CGI scripts

Andreas Jung andreas at andreas-jung.com
Tue Jan 9 09:55:44 EST 2001


On Tue, Jan 09, 2001 at 03:38:06PM +0100, Barbini Uberto wrote:
> I've found some problems to use "post" method in my cgi script (in python).
> 
> have to run both with "get" and "post" html form methods.
> 
> Anyway my script (a converter from nntp to html) can get input values only
> with "get" method and not with "post" method.
> 
> I'm using Xitami under w2k. I configured it adding a filter which link *.py
> to python.exe.
> 
The POST or GET method should be invisible to the application
when using the cgi module of Python. For further debugging you should take a
look at the CGI environment (os.environ dictionary) for both methods. The
arguments for GET method are passed in the QUERY_STRING variable and through
stdin for the POST method. Maybe your web server is doing dothing stupid.

Hope this helps,
Andreas





More information about the Python-list mailing list