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 Peter Landry
Recipients Peter Landry, vstinner
Date 2015-07-31.16:08:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I realized my formatting was poor, making it hard to quickly test the issue. Here's a cleaner version:

    import cgi
    from io import BytesIO

    BOUNDARY = "JfISa01"
    POSTDATA = """--JfISa01
    Content-Disposition: form-data; name="submit-name"
    Content-Length: 5

    env = {
        'CONTENT_TYPE': 'multipart/form-data; boundary={}'.format(BOUNDARY),
        'CONTENT_LENGTH': str(len(POSTDATA))}
    fp = BytesIO(POSTDATA.encode('latin-1'))
    fs = cgi.FieldStorage(fp, environ=env, encoding="latin-1")
Date User Action Args
2015-07-31 16:08:47Peter Landrysetrecipients: + Peter Landry, vstinner
2015-07-31 16:08:47Peter Landrysetmessageid: <>
2015-07-31 16:08:47Peter Landrylinkissue24764 messages
2015-07-31 16:08:47Peter Landrycreate