cURL / Mailing Lists / curl-library / Single Mail


Re:Re:Re:Re:Re: git clone over https failure while using socks proxy. any suggestions?thanks.

From: Daniel Stenberg <>
Date: Fri, 5 Aug 2011 00:27:18 +0200 (CEST)

On Fri, 5 Aug 2011, jelly wrote:

> but, how to set socks5 proxy in enviroment variable? and how to use socks5
> proxy with git?

It wasn't possible at all until very recently (7.21.7), and you do it by
setting the proxy variable with a socks protocol prefix, just as you tried!

Are you possibly using an older version now in your tests?

> $ curl --socks5 localhost:9050

> $ https_proxy="socks5://localhost:9050"
> $ curl
> curl: (56) Proxy CONNECT aborted

I just wrote up a test doing this with my curl dev version (to be committed as
test 709) and it worked just fine for me!

List admin:
Received on 2011-08-05