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 15:47:10 -0800

On Wed, Dec 13, 2006 at 05:08:54PM -0600, Rangoli Mathur wrote:
> I tried setting the HTTP version to 1.0 and I see all chunks being
> coagulated.

More likely, the server doesn't send chunked data in the 1.0 case. See
if there's a Transfer-Encoding: chunked header.

> If I don't set the HTTP version, in which case it uses HTTP 1.1, I see
> ([http-chunk-length] [http-chunk])* in the response.
>
> MOREOVER, for the 1st chunk after HTTP Header, I don't see the
> http-chunk-length at all. I see http-chunk-length for subsequent chunks.

That does look like a bug. Does the curl command-line tool do the same on
the same URL? If so, can you post the output of --trace? It might be
that the server isn't sending chunked data properly, and that would help to
tell. Did you say which version of libcurl and which platform you're using?

>>> Dan
Received on 2006-12-14