cURL / Mailing Lists / curl-library / Single Mail

curl-library

HTTPS over HTTP still broken in git

From: Jerome Robert <jeromerobert_at_gmx.com>
Date: Wed, 25 May 2011 08:10:49 +0000

Hi all,

After upgrading from 7.21.4 I can no longer use git with HTTPS through a squid HTTP
proxy while HTTP or HTTPS in a standalone curl works:

$ curl https://github.com/jeromerobert/jCAE.git/info/refs
2d5071473848ba195a9ac3be2edcf6d07384a8cf refs/heads/master
...
e37bf435d49ea2aba52c2dd61bd60b3747ce56f5 refs/tags/V0_16_0

$ git ls-remote http://github.com/jeromerobert/jCAE.git
2d5071473848ba195a9ac3be2edcf6d07384a8cf HEAD
...
e37bf435d49ea2aba52c2dd61bd60b3747ce56f5 refs/tags/V0_16_0

but:

$ GIT_CURL_VERBOSE=1 git ls-remote https://github.com/jeromerobert/jCAE.git
* About to connect() to proxy localhost port 3128 (#0)
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 3128 (#0)
* Establish HTTP proxy tunnel to github.com:443
> CONNECT github.com:443 HTTP/1.1
Host: github.com:443
User-Agent: git/1.7.4.4
Proxy-Connection: Keep-Alive
Pragma: no-cache

< HTTP/1.1 200 Connection established
<
* Proxy replied OK to CONNECT request
* found 158 certificates in /etc/ssl/certs/ca-certificates.crt
> GET /jeromerobert/jCAE.git/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.7.4.4
Host: github.com
Accept: */*
Pragma: no-cache

* Empty reply from server
* Connection #0 to host localhost left intact
* Connection #0 seems to be dead!
* Closing connection #0
* About to connect() to proxy localhost port 3128 (#0)
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 3128 (#0)
* Establish HTTP proxy tunnel to github.com:443
> CONNECT github.com:443 HTTP/1.1
Host: github.com:443
User-Agent: git/1.7.4.4
Proxy-Connection: Keep-Alive
Pragma: no-cache

< HTTP/1.1 200 Connection established
<
* Proxy replied OK to CONNECT request
* found 158 certificates in /etc/ssl/certs/ca-certificates.crt
> GET /jeromerobert/jCAE.git/info/refs HTTP/1.1
User-Agent: git/1.7.4.4
Host: github.com
Accept: */*
Pragma: no-cache

* Empty reply from server
* Connection #0 to host localhost left intact
error: Empty reply from server while accessing https://github.com/jeromerobert/jCAE.git/info/refs

fatal: HTTP request failed

As downgrading to 7.21.4 fix the problem I guess the problem is in curl and not in git even if
the curl command works.

Regards,

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