cli icon indicating copy to clipboard operation
cli copied to clipboard

Doesn't work behind proxy in corporate Windows network (NTLM)

Open hickford opened this issue 11 years ago • 4 comments

HTTPie doesn't work in my office because our computers are behind an proxy. It still doesn't work even after specifying the --proxy argument, because the proxy is superevil. It uses a proprietary technology called NTLM that breaks most free software (Ruby and Nodejs as well as Python).

Here's a related issue—NTLM authentication for direct (unproxied requests) https://github.com/jkbr/httpie/issues/76

This library will probably be useful in any fix https://github.com/requests/requests-ntlm

hickford avatar Sep 02 '13 16:09 hickford

Plan is to fix this double-upstream in urllib3 https://github.com/shazow/urllib3/issues/242

hickford avatar Sep 21 '13 22:09 hickford

There is now an HTTPie plugin for NTLM auth: httpie-ntlm

jkbrzt avatar Mar 25 '15 21:03 jkbrzt

Sorry that wasn't clear, there are two NTLM auth protocols, one for websites, one for proxies. They use different HTTP headers www-authenticate and proxy-authenticate. See http://davenport.sourceforge.net/ntlm.html#ntlmHttpAuthentication

That plugin is based on requests-ntlm so I think it can only do www-authenticate not proxies.

Upstream issues required for NTLM proxy auth in httpie are probably:

  1. https://github.com/shazow/urllib3/issues/242
  2. https://github.com/kennethreitz/requests/issues/1582

hickford avatar Mar 26 '15 00:03 hickford

Still blocked by upstream / urllib.

Almad avatar Feb 10 '21 13:02 Almad