Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support proxy digest authentication #221

Open
thekvs opened this Issue · 4 comments

2 participants

@thekvs

As far as I can see httpie doesn't support authentication on proxies. It would be nice to have such feature.

@jakubroztocil

Actually, HTTPie does support that, e.g.:

$ http --proxy=http:http://user:pass@10.10.1.10:3128 example.org
@thekvs

Well, it seems that HTTPS case is a bit different:

$ http --proxy https:http://proxy.example.org:3129 --auth-type digest --auth user:password https://example.org/

http: error: ProxyError: Cannot connect to proxy. Socket error: Tunnel connection failed: 407 Proxy Authentication Required.
$
@thekvs

Well, with digest auth. method and HTTP remote site it looks like this:

$ http --proxy=http:http://proxy.example.org:3129 --auth-type digest --auth user:password http://example.org/
HTTP/1.1 407 Proxy Authentication Required
Content-Length: 33
Content-Type: text/plain; charset=utf-8
Date: Tue, 13 May 2014 12:33:32 GMT
Proxy-Authenticate: Digest realm="proxy", qop=auth, nonce="500142b5805f0fe164212626db64fde3"

407 Proxy Authentication Required
$
@jakubroztocil

I see.

Normally it would be:

$ http --proxy https:http://user@password:proxy.example.org:3129  https://example.org/

But that uses basic auth. So the problem is that HTTPie doesn't allow you to specify the auth type the proxy uses.

@jakubroztocil jakubroztocil reopened this
@jakubroztocil jakubroztocil added feature and removed question labels
@jakubroztocil jakubroztocil changed the title from support proxy authentication to support proxy digest authentication
@jakubroztocil jakubroztocil changed the title from support proxy digest authentication to Support proxy digest authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.