[issue16095] urllib2 failing with squid proxy and digest authentication

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16095] urllib2 failing with squid proxy and digest authentication

2015-06-21 Thread Martin Panter
Martin Panter added the comment: There are two problems with the test case, and one bug in Python: 1. HTTPPasswordMgr doesn’t handle realm=None; it has to be a string. You can use HTTPPasswordMgrWithDefaultRealm though. 2. The password managers won’t match a proxy with a non-standard port

[issue16095] urllib2 failing with squid proxy and digest authentication

2015-06-21 Thread Martin Panter
Martin Panter added the comment: I should point out my patch also adds add_password() methods for the authentication handlers to the documentation. These were only documented by example, but everyone seems to prefer using them rather than the equivalent password manager method. --

[issue16095] urllib2 failing with squid proxy and digest authentication

2014-09-15 Thread Alexander Weidinger
Alexander Weidinger added the comment: So, I analyzed the error and I think I found the problem. (urllib.request - Python 3.5.0) It all starts with l. 1079, as the 407 error gets handled, everything ok here, in l. 1081 http_error_auth_reqed(...) gets executed. So next, we are in l. 939, also

[issue16095] urllib2 failing with squid proxy and digest authentication

2014-07-02 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have an update on this please. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16095

[issue16095] urllib2 failing with squid proxy and digest authentication

2014-07-02 Thread Pietro Battiston
Pietro Battiston added the comment: The bug is still present in 2.7.7 and 3.4.1. By the way, under python 3 the workaround takes the form class MyHTTPPasswordMgr(urllib.request.HTTPPasswordMgr): def find_user_password(self, realm, authuri): return a, b Finally, notice the wrong

[issue16095] urllib2 failing with squid proxy and digest authentication

2012-09-30 Thread Pietro Battiston
New submission from Pietro Battiston: If you run the following code: #! /usr/bin/python import urllib2 MyHTTPPasswordMgr = urllib2.HTTPPasswordMgr proxy = urllib2.ProxyHandler({'http': 'http://proxybiblio2.si.unimib.it:8080'}) auth = urllib2.ProxyDigestAuthHandler(MyHTTPPasswordMgr())

[issue16095] urllib2 failing with squid proxy and digest authentication

2012-09-30 Thread Pietro Battiston
Changes by Pietro Battiston m...@pietrobattiston.it: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16095 ___ ___

[issue16095] urllib2 failing with squid proxy and digest authentication

2012-09-30 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16095 ___