curl-library
Re:Re:Re: git clone over https failure while using socks proxy. any suggestions?thanks.
Date: Tue, 2 Aug 2011 22:55:12 +0800 (CST)
Thank you! I have updated my libcurl to the latest version, but still can not use socks proxy.
If I config http.proxy as localhost:9050, I get error: Proxy CONNECT aborted.
If I config http.proxy using some port forwarding tools, such as corkscrew or connect, I get Send failure: Connection reset by peer.
I don't know the difference of these two configurations, and how to choose the proper one.
Why I can't use socks proxy while using git? Thanks.
$ git config --get http.proxy
localhost:9050
jelly_at_jelly-PC2 ~/curl-new
$ GIT_CURL_VERBOSE=1 git clone https://code.google.com/p/wiztodo
Cloning into wiztodo...
* About to connect() to proxy localhost port 9050 (#0)
* Trying ::1... * Connected to localhost (::1) port 9050 (#0)
* Establish HTTP proxy tunnel to code.google.com:443
> CONNECT code.google.com:443 HTTP/1.1
Host: code.google.com:443
User-Agent: git/1.7.5.1
Proxy-Connection: Keep-Alive
Pragma: no-cache
* Proxy CONNECT aborted
* Closing connection #0
* About to connect() to proxy localhost port 9050 (#0)
* Trying ::1... * Connected to localhost (::1) port 9050 (#0)
* Establish HTTP proxy tunnel to code.google.com:443
> CONNECT code.google.com:443 HTTP/1.1
Host: code.google.com:443
User-Agent: git/1.7.5.1
Proxy-Connection: Keep-Alive
Pragma: no-cache
* Proxy CONNECT aborted
* Closing connection #0
error: Proxy CONNECT aborted while accessing https://code.google.com/p/wiztodo/i
nfo/refs
fatal: HTTP request failed
======================
$ git config --get http.proxy
/home/jelly/bin/proxy
$ cat /home/jelly/bin/proxy
#!/bin/sh
exec corkscrew localhost 9050 $*
#connect -S 127.0.0.1:9050 $*
jelly_at_jelly-PC2 ~/curl-new
$ GIT_CURL_VERBOSE=1 git clone https://code.google.com/p/wiztodo
Cloning into wiztodo...
* About to connect() to proxy port 443 (#0)
* Trying 74.125.71.138... * Connected to (nil) (74.125.71.138) port 443 (#0)
* Establish HTTP proxy tunnel to code.google.com:443
* Send failure: Connection reset by peer
* Failed sending CONNECT to proxy
* Closing connection #0
* About to connect() to proxy port 443 (#0)
* Trying 74.125.71.138... * Connected to (nil) (74.125.71.138) port 443 (#0)
* Establish HTTP proxy tunnel to code.google.com:443
* Send failure: Connection reset by peer
* Failed sending CONNECT to proxy
* Closing connection #0
error: Send failure: Connection reset by peer while accessing https://code.googl
e.com/p/wiztodo/info/refs
fatal: HTTP request failed
-- Contact me: QQ: 2578717 MSN: sinojelly_at_msn.cn ÐÂÀË΢²©£ºhttp://t.sina.com.cn/sinojelly ÎҵIJ©¿Í£ºhttp://sinojelly.20x.cc At 2011-08-02 02:32:09,"Daniel Stenberg" <daniel_at_haxx.se> wrote: >On Tue, 2 Aug 2011, jelly wrote: > >> SSL support: no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls} ) >> SSH support: no (--with-libssh2) >> >> And it still print something like this: >> configure: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM >> and more. >> configure: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyass >> l, --with-nss or --with-axtls to address this. >> >> How to enable ssl and ssh? thanks! > >Check out config.log closely to figure out why the detection of the libraries >and their include files failed. > >-- > > / daniel.haxx.se >------------------------------------------------------------------- >List admin: http://cool.haxx.se/list/listinfo/curl-library >Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-02