cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FW: HTTP GET using easycurl - HTTP chunks in HTTP response.

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 13 Dec 2006 17:27:39 -0800

On Wed, Dec 13, 2006 at 06:24:48PM -0600, Rangoli Mathur wrote:
> I am using libcurl 7.16.0 on Solaris.
> I tried the curl command line tool doesn't pose this problem. The
> response from curl coagulated all the HTTP chunks, (I made sure the
> transfer encoding is still chunked).
> So, the issue, then lies in libcurl?
>
> The command executed was:
> curl -x proxy.swacorp.com:8080 -i -G -d "www.yahoo.com" --url
> "www.yahoo.com" --trace trace.out >a.out

Your C snippet didn't have any mention of a proxy server. That makes this
a poor simulation of what you're doing with libcurl. Proxy servers can
introduce a whole new level of brain-damage to HTTP.

> I am attaching trace.out and a.out.

These trace files look fine, which matches what you were saying about curl
working. Try doing a curl command-line that matches as closely as
possible what you're doing in C; that's the whole point of the exercise.

>>> Dan
Received on 2006-12-14