[issue18543] urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument

Moritz Sichert report at bugs.python.org
Wed Jul 24 14:26:58 CEST 2013


New submission from Moritz Sichert:

If you pass any of cafile, capath or cadefault to urllib.parse.urlopen it creates a new opener that contains the HTTPSHandler that was according to the ca* arguments. It then uses this new opener to execute the request.
If you installed a custom opener with urllib.parse.install_opener it won't be used.

urlopen should either add a HTTPSHandler to the installed opener or not accept any Handler specific arguments at all.

----------
components: Library (Lib)
messages: 193640
nosy: moritzs
priority: normal
severity: normal
status: open
title: urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4

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


More information about the Python-bugs-list mailing list