cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:Re:Re: git clone over https failure while using socks proxy.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 7 Aug 2011 17:47:39 +0200 (CEST)

On Sat, 6 Aug 2011, jelly wrote:

> It seems that curl don't know there is proxy setting in https_proxy. ( socks
> proxy and http proxy are all the same)

Again, this works fine for me. I'll show you my command line below.

Can you set a break-point in lib/url.c:detect_proxy() and see that it finds
the https proxy environment variable there?

$ https_proxy="socks4://localhost:9000" ./src/curl -v
https://code.google.com/p/wiztodo
* About to connect() to proxy localhost port 9000 (#0)
* Trying 127.0.0.1... % Total % Received % Xferd Average Speed Time
Time Time Current
                                  Dload Upload Total Spent Left Speed
   0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0connected
* SOCKS4 request granted.
* Connected to localhost (127.0.0.1) port 9000 (#0)
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
   CApath: none
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc;
CN=*.google.com
* start date: 2011-07-27 10:11:59 GMT
* expire date: 2012-07-27 10:21:59 GMT
* subjectAltName: code.google.com matched
* issuer: C=US; O=Google Inc; CN=Google Internet Authority
* SSL certificate verify ok.
> GET /p/wiztodo HTTP/1.1
> User-Agent: curl/7.21.8-DEV (i686-pc-linux-gnu) libcurl/7.21.8-DEV
OpenSSL/1.0.0d zlib/1.2.3.4 libidn/1.22 libssh2/1.2.9_DEV librtmp/2.2e
> Host: code.google.com
> Accept: */*
>
* additional stuff not fine transfer.c:1033: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 301 Moved Permanently
< Location: http://code.google.com/p/wiztodo/
< X-Content-Type-Options: nosniff
< Content-Type: text/html; charset=UTF-8
< Date: Sun, 07 Aug 2011 15:45:14 GMT
< Expires: Tue, 06 Sep 2011 15:45:14 GMT
< Cache-Control: public, max-age=2592000
< Server: codesite
< Content-Length: 230
< X-XSS-Protection: 1; mode=block
<
   0 230 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0<HTML><HEAD><meta http-equiv="content-type"
content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://code.google.com/p/wiztodo/">here</A>.
</BODY></HTML>
100 230 100 230 0 0 435 0 --:--:-- --:--:-- --:--:-- 436
* Connection #0 to host code.google.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-07