[New-bugs-announce] [issue11082] ValueError: Content-Length should be specified

William Wu report at bugs.python.org
Mon Jan 31 20:18:12 CET 2011


New submission from William Wu <willie.tw at gmail.com>:

I found this bug when I started to trying Python 3.2 release candidate 1.

When using urllib.request.urlopen to handle HTTP POST, I got the error message:

ValueError: Content-Length should be specified     for iterable data of type <class 'str'> 'foo=bar'

I'll attach the patch and test case.

----------
components: Library (Lib)
messages: 127646
nosy: William.Wu
priority: normal
severity: normal
status: open
title: ValueError: Content-Length should be specified
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11082>
_______________________________________


More information about the New-bugs-announce mailing list