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

Antoine Pitrou report at bugs.python.org
Mon Apr 1 20:42:12 CEST 2013


Antoine Pitrou 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?

HTTPSConnection is lower-level, so it makes sense to allow more
deviations there. That's why HTTPSConnection also takes the context
directly.

----------

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


More information about the Python-bugs-list mailing list