[New-bugs-announce] [issue6234] cgi.FieldStorage is broken when given POST data
Evan Fosmark
report at bugs.python.org
Mon Jun 8 00:07:36 CEST 2009
New submission from Evan Fosmark <me at evanfosmark.com>:
Right now, it seems impossible to use cgi.FieldStorage in 3.0 if you're
giving it environ['wsgi.input'] like so:
post_data = cgi.FieldStorage(
fp=environ["wsgi.input"],
environ=environ,
keep_blank_values=True
)
It gives the following error:
File "/usr/local/lib/python3.0/cgi.py", line 489, in __init__
self.read_urlencoded()
File "/usr/local/lib/python3.0/cgi.py", line 589, in read_urlencoded
self.strict_parsing):
File "/usr/local/lib/python3.0/urllib/parse.py", line 377, in
parse_qsl
pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')]
TypeError: Type str doesn't support the buffer API
----------
components: Library (Lib)
messages: 89060
nosy: efosmark
severity: normal
status: open
title: cgi.FieldStorage is broken when given POST data
type: behavior
versions: Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6234>
_______________________________________
More information about the New-bugs-announce
mailing list