[issue21413] urllib.request.urlopen dies on non-basic/digest auth schemes
Samwyse
report at bugs.python.org
Fri May 2 01:03:33 CEST 2014
New submission from Samwyse:
In Python 2.x, this opens an NTLM protected URL:
opener = urllib2.build_opener(proxy_handler, auth_NTLM, auth_digest, auth_basic)
urllib2.install_opener(opener)
response = urllib2.urlopen(url)
In Python 3.x, this raises an error:
opener = urllib.request.build_opener(proxy_handler, auth_NTLM, auth_digest, auth_basic)
urllib.request.install_opener(opener)
response = urllib.request.urlopen(url)
The error is:
ValueError: AbstractDigestAuthHandler does not support the following scheme: 'NTLM'
Removing auth_digest from the list of handlers allows the code to work.
----------
components: Library (Lib)
messages: 217734
nosy: samwyse
priority: normal
severity: normal
status: open
title: urllib.request.urlopen dies on non-basic/digest auth schemes
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21413>
_______________________________________
More information about the Python-bugs-list
mailing list