# [BUG]:Git doesn't work with Sock5 proxy on MAC

1 messages from 2013-01-11 to 2013-01-11. Participants: Herry Wang.
Thread: https://gitlist.dev/t/32596

## Herry Wang, 2013-01-11 20:22

Subject: [BUG]:Git doesn't work with Sock5 proxy on MAC
Message-ID: <CAHNFYON4rqs2Pu+qFoWjszH-eReLZKqzsFuZQebh2qVTcxN+_Q@mail.gmail.com>
URL: https://gitlist.dev/e/CAHNFYON4rqs2Pu%2BqFoWjszH-eReLZKqzsFuZQebh2qVTcxN%2B_Q%40mail.gmail.com

```
On Thu, Jan 10, 2013 at 9:51 PM, Herry Wang <tech.herry@gmail.com> wrote:
>
> OS:
>
> Darwin ... 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT
> 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
>
> Git: version: (via homebrew)
>
>  git --version
> git version 1.8.0
>
> curl version:
>
> curl --version
> curl 7.28.1 (x86_64-apple-darwin11.4.2)
>
>
> git clone http://herry@stash.somesite/a.git
> Cloning into 'a'...
> error: Empty reply from server while accessing
> ....git/info/refs?service=git-upload-pack
> fatal: HTTP request failed
>
> i tried export http_proxy=socks5://ip:port, all_proxy=socks5://, neither
> of them works.
> I also configure socks proxy in ~/.curlrc,  git is not working well.
> However, curl is doing well with curlrc config.
> From the trace, looks like git is just put the http request via proxy
> host. But according with socks protocol, it should have some headers.
>
>
> Interesting thing is, http_proxy way is working perfectly on my Ubuntu
> enviroment.
>
>
> Thanks
> Herry
>

```
