[New-bugs-announce] [issue16066] Truncated POST data in CGI script on Windows 7

Alexander Martin report at bugs.python.org
Thu Sep 27 23:50:48 CEST 2012


New submission from Alexander Martin:

POST data is truncated randomly when sent to a python script running on a simple python CGI server on Windows 7 with Python 3.2.3.

The same server and script files run successfully on MAC OSX 10.8 with Python 3.2.3. A similar server (adapted for lower Python version) and the same script file do work fine on Windows 7 with Python 2.7.2. 

Steps to reproduce: Attached zip contains server script, HTML file and Python script, that receives an uploaded file and saves it to disk. Upload an image file and submit the form inside the HTML file to Python script. Repeat form submission multiple times. In more than 50% of test cases, the uploaded file will not be completely available inside the Python script. That means size of the same uploaded file varies with each POST request. Additionally, the Python server will reset the HTTP connection sometimes.

----------
components: Windows
files: Truncated_POST_data_in_CGI_script_on_Win7.zip
messages: 171394
nosy: Alexander.Martin, brian.curtin, tim.golden
priority: normal
severity: normal
status: open
title: Truncated POST data in CGI script on Windows 7
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file27322/Truncated_POST_data_in_CGI_script_on_Win7.zip

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16066>
_______________________________________


More information about the New-bugs-announce mailing list