Skip to content
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

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

Open
hickford opened this issue Sep 2, 2013 · 4 comments
Open

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

hickford opened this issue Sep 2, 2013 · 4 comments
Labels
blocked by upstream The issue is in a dependency. We are waiting for the upstream library to lay the groundwork. enhancement New feature or enhancement

Comments

@hickford
Copy link
Contributor

hickford commented Sep 2, 2013

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) #76

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

@hickford
Copy link
Contributor Author

Plan is to fix this double-upstream in urllib3 urllib3/urllib3#242

@jkbrzt
Copy link
Member

jkbrzt commented Mar 25, 2015

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

@jkbrzt jkbrzt closed this as completed Mar 25, 2015
@hickford
Copy link
Contributor Author

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. Allow custom authentication (in particular NTLM) to proxies urllib3/urllib3#242
  2. https://github.com/kennethreitz/requests/issues/1582

@jkbrzt jkbrzt reopened this Mar 26, 2015
@Almad
Copy link

Almad commented Feb 10, 2021

Still blocked by upstream / urllib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked by upstream The issue is in a dependency. We are waiting for the upstream library to lay the groundwork. enhancement New feature or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants