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 juneaftn
Recipients juneaftn, rhettinger
Date 2008-02-16.13:18:56
SpamBayes Score 0.21243761
Marked as misclassified No
Message-id <1203167938.11.0.556138107236.issue2126@psf.upfronthosting.co.za>
In-reply-to
Content
http://bugs.python.org/issue430160
http://bugs.python.org/issue427345

These two issues refer to the same bug, which occurs when there is a
POST from an Internet Explorer and the POST's content is long enough.
The issue was resolved by changing the CGIHTTPServer.py to consume the
remaining garbage. However, the bug potentially remains with
BaseHTTPServer.py(and hence its descendants like SimpleHTTPServer, and
3rd party libraries like MoinMoin's stand alone server).

People should have the knowledge of the IE POST bug and put the code
for treating it everytime when they use BaseHTTPServer.

Simple way to solve this is inserting the garbage consuming code in
the "finish" method:

        while select.select([self.rfile], [],[],0)[0]:
           if not self.rfile.read(1): break
History
Date User Action Args
2008-02-16 13:18:58juneaftnsetspambayes_score: 0.212438 -> 0.21243761
recipients: + juneaftn, rhettinger
2008-02-16 13:18:58juneaftnsetspambayes_score: 0.212438 -> 0.212438
messageid: <1203167938.11.0.556138107236.issue2126@psf.upfronthosting.co.za>
2008-02-16 13:18:57juneaftnlinkissue2126 messages
2008-02-16 13:18:56juneaftncreate