New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
urllib2 digest auth totally broken #40447
Comments
The urllib2 digest auth handler is totally broken.
|
Logged In: YES For discussion about number 2 above, see bpo-944396. |
Isn't this issue fixed and tested on Lib/test/test_urllib2.py:1304? |
let me check that. |
Checked with 3.4.0 alpha, works fine. Apart from the tests mentioned, I used the following script to check digest auth: from urllib import request
url = 'http://httpbin.org/digest-auth/auth/user/passwd'
req = request.Request(url)
password_manager = request.HTTPPasswordMgrWithDefaultRealm()
password_manager.add_password(None, url, 'user', 'passwd')
auth_manager = request.HTTPDigestAuthHandler(password_manager)
opener = request.build_opener(auth_manager)
request.install_opener(opener)
handler = request.urlopen(req)
|
The bug has been fixed a while ago. Python 2.7 as well as Python 3.x have tests to verify digest auth. Farewell Aaron... |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: