This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexey.namyotkin
Recipients alexey.namyotkin
Date 2020-07-21.13:58:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595339881.01.0.101864505877.issue41360@roundup.psfhosted.org>
In-reply-to
Content
The _tunnel method of the HTTPConnection class in the http.client module, if the CONNECT request is unsuccessful, closes the connection and raises an OSError without returning the response data. This behavior does not allow to implement the authentication procedure on the proxy server using methods similar to those used for authentication on servers (using hooks). And at the moment proxy authentication (Kerberos, Digest, NTLM - all other than Basic) is not supported by the urllib3 and accordingly requests, pip and many others. As a result, a large number of people cannot use Python to create scripts that involve working on the Internet (if they don't know workarounds). This problem has been mentioned many times here (Issue 7291, 24333, 24964). There are many Issues related to this task in requests, urllib3, pip and other. This problem is many years old (at least 5), but there is still no complete solution (as far as I can tell). There are several workarounds, but there is still no solution that could be used in urllib3, requests, pip and other (in many discussions of Issues _tunnel method is indicated as a reason preventing a proxy authentication solution from being implemented). Hopefully someone can finally solve this problem or explain why it can't be solved
History
Date User Action Args
2020-07-21 13:58:01alexey.namyotkinsetrecipients: + alexey.namyotkin
2020-07-21 13:58:01alexey.namyotkinsetmessageid: <1595339881.01.0.101864505877.issue41360@roundup.psfhosted.org>
2020-07-21 13:58:00alexey.namyotkinlinkissue41360 messages
2020-07-21 13:58:00alexey.namyotkincreate