[issue17483] Can not tell urlopen not to check the hostname for https connections.

Senthil Kumaran report at bugs.python.org
Mon Apr 1 20:27:08 CEST 2013


Senthil Kumaran added the comment:

Antoine - I approached it from idea that check_hostname "as a setting" is allowed from HTTPSConnection (http/client.py) but it not controllable from urllib. Is there a case where it is useful in HTTPSConnection, but it should not be from urllib?

- Thanks for the changes. One comment on the  changeset 4ed8a8e781c3 

+        https_handler = HTTPSHandler(context=context, check_hostname=True)

check_hostname=True is redundant here. You could send the context and by default it checks the hostname.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17483>
_______________________________________


More information about the Python-bugs-list mailing list