cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 12 Dec 2006 23:40:36 +0100 (CET)

On Tue, 12 Dec 2006, Rangoli Mathur wrote:

> I am doing a simple HTTP GET using libcurl. The application receives chunked
> data in response of the GET request. Isnt the chunked data supposed to be
> coagulated by libcurl?

Yes it should. What libcurl version are you using? Could it perhaps be so that
either there's no chunked-encoding response header or that the chunked
encoding is somehow bad/illegal syntaxwise?

> I have an application that makes certain HTTP requests, and then use the
> responses. The application is not written for HTTP 1.0 and doesnt understand
> chunked HTTP responses.

I take it you meant 1.1 there.

> Is there anyway to get all the http chunks coagulated without having to
> actually read the response string and do string manipulations??

If you see fragments of the chunked encoding, something is not right...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-12-12