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

Alecz report at bugs.python.org
Thu Jul 24 18:29:51 CEST 2014


Alecz added the comment:

Actually, because of issue 18543, urlopen will not use the custom opener if one was defined, instead, it will create a new opener with check_hostname = True.

So it is impossible to skip hostname checking without overriding the urlopen method.

I don't understand why can't we allow check_hostmane to be set to False in urlopen and also why we don't allow custom openers to be used by urlopen if specifying a ca*.

Moreover this forced restriction is not documented. I had to go to the source code to figure out why it wasn't working.

This issue being resolved makes it even more misleading.

----------
nosy: +Alecz
Added file: http://bugs.python.org/file36068/urlopen-explained.py

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


More information about the Python-bugs-list mailing list