cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: jelly <sinojelly_at_163.com>
Date: Sat, 6 Aug 2011 01:16:31 +0800 (CST)

I know why curl report No URL Set Error.
There are some bugs in the latest two commits.
If i switch to "40597fd git ignore src/config-win32.h", It works ok.
It seems that i git clone ok while using socks proxy, but I can't find any information about socks proxy.
so i doubet socks proxy was not used?
or the modification of libcurl was so usefull that i can go through the internet without proxy?

jelly_at_jelly-PC2 ~/curl-new/curl-git
$ git log --oneline master
817b863 BSD-style lwIP TCP/IP stack support - docs/INSTALL blurb
f6272dd BSD-style lwIP TCP/IP stack support - followup
40597fd git ignore src/config-win32.h
f0fae85 keep a single copy of config-win32.h in version control repository.
e1f3536 RELEASE-NOTES: synced with afe88d85f40e1
afe88d8 test710: verify that --proxy socks5://hostname works
17f3432 create_conn: mark non-HTTP proxies accordingly
75fa3d2 test709: HTTP GET via SOCKS5 set in environment
9812446 TODO-RELEASE: issue #293 is done

$ https_proxy="socks5://localhost:9050"

jelly_at_jelly-PC2 ~/curl-new/curl-git
$ GIT_CURL_VERBOSE=1 git clone https://code.google.com/p/wiztodo wiztodo4
Cloning into wiztodo4...
* About to connect() to code.google.com port 443 (#0)
* Trying 74.125.235.105... * Connected to code.google.com (74.125.235.105) por
t 443 (#0)
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=*.googl
e.com
* start date: 2011-07-27 10:11:59 GMT
* expire date: 2012-07-27 10:21:59 GMT
* issuer: C=US; O=Google Inc; CN=Google Internet Authority
* SSL certificate verify result: unable to get local issuer certificate (
20), continuing anyway.
> GET /p/wiztodo/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.7.5.1
Host: code.google.com
Accept: */*
Pragma: no-cache

< HTTP/1.1 200 OK
< Content-Type: application/x-git-upload-pack-advertisement
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, max-age=0, must-revalidate
< X-Content-Type-Options: nosniff
< Date: Fri, 05 Aug 2011 17:04:29 GMT
< Server: git_frontend
< Content-Length: 238
< X-XSS-Protection: 1; mode=block
<

* Connection #0 to host code.google.com left intact
* About to connect() to code.google.com port 443 (#0)
* Trying 74.125.235.105... % Total % Received % Xferd Average Speed Ti
me Time Time Current
                                 Dload Upload Total Spent Left Speed
100 238 0 238 0 0 3625 0 --:--:-- --:--:-- --:--:-- 3625*

--
Contact me:  
QQ: 2578717
MSN: sinojelly_at_msn.cn
ÐÂÀË΢²©£ºhttp://t.sina.com.cn/sinojelly
ÎҵIJ©¿Í£ºhttp://sinojelly.20x.cc
At 2011-08-06 00:43:05,jelly <sinojelly_at_163.com> wrote:
>I have updated libcurl to the new version, but i get No URL Set error.
>
>jelly_at_jelly-PC2 ~/curl-new
>$ https_proxy="socks5://localhost:9050"
>
>jelly_at_jelly-PC2 ~/curl-new
>$ curl https://code.google.com/p/wiztodo
>curl: (3) No URL set!
>Segmentation fault (core dumped)
>
>jelly_at_jelly-PC2 ~/curl-new
>$ https_proxy=
>
>jelly_at_jelly-PC2 ~/curl-new
>$ curl --socks5 localhost:9050 https://code.google.com/p/wiztodo
>curl: (3) No URL set!
>Segmentation fault (core dumped)
>
>jelly_at_jelly-PC2 ~/curl-new
>$ git clone https://code.google.com/p/wiztodo
>Cloning into wiztodo...
>error: No URL set! while accessing https://code.google.com/p/wiztodo/info/refs
>
>fatal: HTTP request failed
>
>jelly_at_jelly-PC2 ~/curl-new
>$ GIT_CURL_VERBOSE=1 git clone https://code.google.com/p/wiztodo
>Cloning into wiztodo...
>* No URL set!
>* No URL set!
>error: No URL set! while accessing https://code.google.com/p/wiztodo/info/refs
>
>fatal: HTTP request failed
>At 2011-08-05 06:48:37,"Daniel Stenberg" <daniel_at_haxx.se> wrote:
>>On Fri, 5 Aug 2011, Daniel Stenberg wrote:
>>
>>> Hang on, there's something fishy here. Will commit something soon to make 
>>> things better. Stay tuned.
>>
>>Try the current git version and it should work better when the socks proxy is 
>>set with --proxy or an evironment variable.
>>
>>The exact fix is this:
>>
>>https://github.com/bagder/curl/commit/17f343290c9888ab5f108b0e4c
>>
>>-- 
>>
>>  / 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

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