{"thread":{"id":"32596","subject":"[BUG]:Git doesn't work with Sock5 proxy on MAC","startedAt":"2013-01-11T20:22:45Z","lastAt":"2013-01-11T20:22:45Z","messageCount":1,"participants":["Herry Wang"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"206556","messageId":"CAHNFYON4rqs2Pu+qFoWjszH-eReLZKqzsFuZQebh2qVTcxN+_Q@mail.gmail.com","threadId":"32596","inReplyTo":null,"subject":"[BUG]:Git doesn't work with Sock5 proxy on MAC","fromName":"Herry Wang","fromEmail":"tech.herry@gmail.com","sentAt":"2013-01-11T20:22:45Z","receivedAt":"2013-01-11T20:22:45Z","isPatch":false,"sender":{"key":"tech.herry@gmail.com","avatar":null},"body":"On Thu, Jan 10, 2013 at 9:51 PM, Herry Wang <tech.herry@gmail.com> wrote:\n>\n> OS:\n>\n> Darwin ... 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT\n> 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64\n>\n> Git: version: (via homebrew)\n>\n>  git --version\n> git version 1.8.0\n>\n> curl version:\n>\n> curl --version\n> curl 7.28.1 (x86_64-apple-darwin11.4.2)\n>\n>\n> git clone http://herry@stash.somesite/a.git\n> Cloning into 'a'...\n> error: Empty reply from server while accessing\n> ....git/info/refs?service=git-upload-pack\n> fatal: HTTP request failed\n>\n> i tried export http_proxy=socks5://ip:port, all_proxy=socks5://, neither\n> of them works.\n> I also configure socks proxy in ~/.curlrc,  git is not working well.\n> However, curl is doing well with curlrc config.\n> From the trace, looks like git is just put the http request via proxy\n> host. But according with socks protocol, it should have some headers.\n>\n>\n> Interesting thing is, http_proxy way is working perfectly on my Ubuntu\n> enviroment.\n>\n>\n> Thanks\n> Herry\n>\n"}]}