Message247752
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
Larry
--JfISa01"""
env = {
'REQUEST_METHOD': 'POST',
'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:47 | Peter Landry | set | recipients:
+ Peter Landry, vstinner |
2015-07-31 16:08:47 | Peter Landry | set | messageid: <1438358927.43.0.333121078994.issue24764@psf.upfronthosting.co.za> |
2015-07-31 16:08:47 | Peter Landry | link | issue24764 messages |
2015-07-31 16:08:47 | Peter Landry | create | |
|