This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author William.Wu
Recipients William.Wu
Date 2011-01-31.19:18:12
SpamBayes Score 2.1640317e-05
Marked as misclassified No
Message-id <1296501492.73.0.362770141375.issue11082@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-01-31 19:18:12William.Wusetrecipients: + William.Wu
2011-01-31 19:18:12William.Wusetmessageid: <1296501492.73.0.362770141375.issue11082@psf.upfronthosting.co.za>
2011-01-31 19:18:12William.Wulinkissue11082 messages
2011-01-31 19:18:12William.Wucreate