Message247752
| Author | Peter Landry |
|---|---|
| Recipients | Peter Landry, vstinner |
| Date | 2015-07-31.16:08:47 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1438358927.43.0.333121078994.issue24764@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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") |
|
| History | |||
|---|---|---|---|
| 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 | |