cli
cli copied to clipboard
Doesn't work behind proxy in corporate Windows network (NTLM)
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
Plan is to fix this double-upstream in urllib3 https://github.com/shazow/urllib3/issues/242
There is now an HTTPie plugin for NTLM auth: httpie-ntlm
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:
- https://github.com/shazow/urllib3/issues/242
- https://github.com/kennethreitz/requests/issues/1582
Still blocked by upstream / urllib.