Nan Wu added the comment: 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. ---------- Added file: http://bugs.python.org/file40912/urllib_request_param_type_check_4.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25439> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com