[issue11082] ValueError: Content-Length should be specified

Senthil Kumaran report at bugs.python.org
Fri Feb 11 05:05:49 CET 2011


Senthil Kumaran <orsenthil at gmail.com> added the comment:

Here is the patch with addressing the comments.
1. It should be TypeError instead of ValueError when str is rejected. We introduced ValueError for this release only, so there is no breakage here.
2. Informed the user that string should be encoded to bytes using user-specified encoding before it is sent as POST data. Also pointed to Examples in the urllib.request section. ( I could not hyperlink directly to #examples section. If that is possible, it would be better).

----------
Added file: http://bugs.python.org/file20740/Issue11082-2.patch

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


More information about the Python-bugs-list mailing list