This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alexander.Martin
Recipients Alexander.Martin, brian.curtin, tim.golden
Date 2012-09-27.21:50:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348782648.4.0.8522398728.issue16066@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-09-27 21:50:48Alexander.Martinsetrecipients: + Alexander.Martin, tim.golden, brian.curtin
2012-09-27 21:50:48Alexander.Martinsetmessageid: <1348782648.4.0.8522398728.issue16066@psf.upfronthosting.co.za>
2012-09-27 21:50:46Alexander.Martinlinkissue16066 messages
2012-09-27 21:50:45Alexander.Martincreate