-
Notifications
You must be signed in to change notification settings - Fork 101
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
Problem with NTLM-authenticate proxy for HTTPS CONNECT #104
Comments
Hi @railocius! I have opened an issue in |
I have exactly the same issue. The problem seems to have nothing to do with |
See my hack here if this is helpful: urllib3/urllib3#1434 (comment) |
see follow up comment: urllib3/urllib3#1434 (comment) |
I had exactly the same issue and though of making changes to the libraries, but it didn't allow me as the libraries are administrator controlled. But it worked for me the other way by downloading the cntlm from official repo https://sourceforge.net/projects/cntlm/files/cntlm/cntlm%200.92.3/ and configuring it as recommended in the proxy protected environment. |
Hi,
I try to use HttpNtlmAuth to use for a NTLM proxy authentication request.
tested with Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] and also newest 2.7.14:
The last error message from the call stack is:
I checked with Wireshark (and Npcap for loopback connection monitoring) and the HTTP connection looks like this:
HTTP GET:
Packet 1, request: GET http://neverssl.com/
Packet 2, response: HTTP/1.1 407 Proxy Authentication Required
Packet 3, request: GET http://neverssl.com/ HTTP/1.1 , Proxy-authorization: NTLM TlRMTV...
Packet 4, response: HTTP/1.1 407 Proxy Authentication Required, Proxy-Authenticate: NTLM TlRMT....
Packet 5, request: GET http://neverssl.com/ HTTP/1.1 Proxy-authorization: NTLM TlRMTVNT...(much longer than last time)
Packet 6, request: HTTP/1.1 200 OK
HTTPS CONNECT:
Packet 1, request: CONNECT www.google.com:443 HTTP/1.0 (the whole request is literally just this one line)
Packet 2, response: HTTP/1.1 407 Proxy Authentication Required, Proxy-Authenticate: NTLM
-> Error ConnectionError
If you want to try this yourself, you can set up a NTLM-auth proxy like this: https://stackoverflow.com/a/48238953/9043528
Ok, how can this be fixed ?
Is this a bug in HttpNtlmAuth that does not set the number of retries ?
The text was updated successfully, but these errors were encountered: