cURL / Mailing Lists / curl-library / Single Mail


Re: question on https through proxy

From: Daniel Stenberg <>
Date: Fri, 4 Oct 2002 11:00:34 +0200 (MET DST)

On Thu, 3 Oct 2002 wrote:

> Hi, I'm trying to debug a problem with an https connection through a proxy.
> Not sure if it is a curl issue or proxy issue, looking for any ideas.
> http connection through the proxy works fine and an https connection from
> ie works fine, but https from curl hangs.
> proxy output from ie connection says:
> accept connection ... scan: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0;
> Windows NT 5.0) default
> scan: Host:
> scan: Content-Length: 0
> scan: Proxy-Connection: Keep-Alive crunch!
> scan: Pragma: no-cache
> connect to: ... OK
> <data follows>

Ok, these 'scan' lines that the proxy logs, they must be headers in the IE
request, right?

> proxy putput from curl connection says:
> accept connection ... scan: User-Agent: curl/7.9.8 (win32) libcurl 7.9.8
> (OpenSSL 0.9.6d) default
> connect to: ... OK

... and why doesn't it mention the Host: line or the Pragma: line for the
curl command? It does get the user-agent and then goes straight to the

> * About to connect() to
> * Connected to ( port 8000
> * Establish HTTP proxy tunnel to

This line is written just before curl issues the CONNECT request to the
proxy, which according to the proxy log above seems to do fine.

> And the connection just seems to hang. https to the server from curl
> bypassing the proxy also works, so it seems to be a specific interaction
> between curl and this proxy using https.

What if you use the --trace option, can you see if you ever get anything back
from the proxy after the CONNECT has been sent off? If so, what does it

 Daniel Stenberg -- curl related mails on curl related mailing lists please
This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2002-10-04