cURL / Mailing Lists / curl-library / Single Mail


Re: question on https through proxy

From: <>
Date: Fri, 4 Oct 2002 11:46:12 -0400

Yup, that looks like it was it. The proxy is junkbuster20 ( which is free with source. I grabbed the source and found this:

char CSUCCEED[] = "HTTP/1.0 200 Connection established\n"
                  "Proxy-Agent: IJ/" VERSION "\n\n"

Changed that to this:

char CSUCCEED[] = "HTTP/1.0 200 Connection established\r\n"
                  "Proxy-Agent: IJ/" VERSION "\r\n\r\n"

Recompiled and curl was happy. The only bad thing is it looked like most
of the lines I saw where terminated with just \n vs. \r\n.

Thanks for the help.

>The response from the proxy doesn't seem to return correct CRLF newlines,
>only LF (0a only, not 0d 0a).
>This is a violation of the HTTP spec, and curl doesn't understand that
>end of the proxy reply has been received, but instead it hangs waiting
>the reply "terminator sequence" to arrive. The proxy is supposed to send
>a 200 OK response for curl to know that the connection is done fine to
>remote host.
>Of course, we should probably make an effort to detect this anyway and
>curl be happy with "bad" newlines too.
>I would be happy if you could verify this, but setting a break-point in
>lib/http.c:Curl_ConnectHTTPProxyTunnel() and just single-step down a bit
>until it reads the response and checks for the terminating stuff to
>On what platform runs this "Proxy-Agent: IJ" ? Is it possible to download
>free/trial? Is it possible for me to try some curl commands on it, or are
>capable of fixing this yourself?
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