Message100509
I am reluctant to post this because (a) I might have made some dumb mistake in my code, simple as it is, and (b) the problem might be well-known or even hopeless because the cgi module may not be WSGI compliant, but if this isn't going to be fixed then at least the problem should be described in the cgi module documentation.
I run an HTTPServer with a CGIHTTPRequestHandler.
I open an HTML file with a trivial form that simply POSTs an upload of a single file.
I browse, select a file, and click submit.
The web request never completes -- the browser just waits for a response.
Interrupting the server with ^C^C produces a backtrace that indicates it is stuck trying to decode the file contents.
The attached zip file contains:
cgi-server.py
cgi-post.html
cgi-bin/cgi-test.py
exception.txt
The latter is the backtrace output from when I interrupt the server.
This is on OS X 10.5 with either Python3.1 or Python3.2 from the repository. |
|
Date |
User |
Action |
Args |
2010-03-06 01:43:41 | MLModel | set | recipients:
+ MLModel, georg.brandl |
2010-03-06 01:43:40 | MLModel | set | messageid: <1267839820.97.0.586792235494.issue8077@psf.upfronthosting.co.za> |
2010-03-06 01:43:39 | MLModel | link | issue8077 messages |
2010-03-06 01:43:37 | MLModel | create | |
|