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 Nan Wu
Recipients Nan Wu, ezio.melotti, martin.panter
Date 2015-10-31.19:01:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Martin: Sorry for missing that line.

Under https, byte iterable seems has not been supported:
>>> r = Request('', {b'post': 'data'}, {'Content-Length':10})
>>> urlopen(r)

... hanging here...

Meanwhile, I assumed bytearray works as expected.
>>> r = Request('', bytearray('post=data', 'utf-8'))
>>> urlopen(r)
urllib.error.HTTPError: HTTP Error 403: FORBIDDEN

In *4.patch, I updated Request class doc to add these observations and fixed issues appeared in last patch.
Date User Action Args
2015-10-31 19:01:16Nan Wusetrecipients: + Nan Wu, ezio.melotti, martin.panter
2015-10-31 19:01:15Nan Wusetmessageid: <>
2015-10-31 19:01:15Nan Wulinkissue25439 messages
2015-10-31 19:01:15Nan Wucreate