[issue11082] ValueError: Content-Length should be specified
report at bugs.python.org
Wed Nov 9 03:17:31 CET 2011
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
I think the information in the patch should go in the urlopen doc, not in urlencode. Adding a note to urlencode that says that the result must be encoded is fine, but all the details about the default encoding and the fact that an extra Content-Type header is necessary when the encoding is not iso-8859-1 belong to the urlopen doc IMHO. (Is the header actually necessary? I think I always sent utf-8 without header, and the example you added in r88394 also uses utf-8 with no extra headers.)
There are also a few minor issues with the patch -- I'll leave a note in rietveld for that.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list