Message217734
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. |
|
Date |
User |
Action |
Args |
2014-05-01 23:03:33 | samwyse | set | recipients:
+ samwyse |
2014-05-01 23:03:33 | samwyse | set | messageid: <1398985413.93.0.034829479965.issue21413@psf.upfronthosting.co.za> |
2014-05-01 23:03:33 | samwyse | link | issue21413 messages |
2014-05-01 23:03:32 | samwyse | create | |
|