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 <1446318075.96.0.0512362385049.issue25439@psf.upfronthosting.co.za>
In-reply-to
Content
Martin: Sorry for missing that line.

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

... hanging here...

Meanwhile, I assumed bytearray works as expected.
>>> r = Request('https://www.python.org', 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.
History
Date User Action Args
2015-10-31 19:01:16Nan Wusetrecipients: + Nan Wu, ezio.melotti, martin.panter
2015-10-31 19:01:15Nan Wusetmessageid: <1446318075.96.0.0512362385049.issue25439@psf.upfronthosting.co.za>
2015-10-31 19:01:15Nan Wulinkissue25439 messages
2015-10-31 19:01:15Nan Wucreate