[docs] [issue23360] Content-Type when sending data with urlopen()

Martin Panter report at bugs.python.org
Tue Mar 31 13:50:39 CEST 2015

Martin Panter added the comment:

I think we should avoid mentioning bytes-like objects until Issue 23740 (http.client support), Issue 23756 (clarify definition), and/or SSLSocket.sendall() support are sorted out.

Changes in non-urlencoded.3.patch:
* Removed iterable object as direct urlopen() argument, since that would require a custom Content-Length and therefore a custom Request object
* Removed Content-Type discussion from urlopen() for similar reasons
* Added iterable object to Request constructor (already tested)
* Clarified default Content-Type whenever data is not None
* Added a test for default Content-Type with iterable object

stage:  -> patch review
versions: +Python 3.5
Added file: http://bugs.python.org/file38758/non-urlencoded.3.patch

Python tracker <report at bugs.python.org>

More information about the docs mailing list