cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Rangoli Mathur <Rangoli.Mathur_at_wnco.com>
Date: Wed, 13 Dec 2006 14:47:50 -0600

If I have defined a function: write_data and I have used
Curl_easy_setopt(curlHandle, CURLOPT_WRITE_FUNCTION, write_data).

For HTTP1.1 chunked transfer encoding, Does the write_data function get
called once for every http chunk there is?
 
If so, for the body, can I safely assume that every write would begin
with the number of bytes to read in hex, followed by those many bytes?

-R

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of
> Daniel Stenberg
> Sent: Wednesday, December 13, 2006 9:39 AM
> To: libcurl development
> Subject: Re: FW: HTTP GET using easycurl - HTTP chunks in
> HTTP response.
>
> On Wed, 13 Dec 2006, Rangoli Mathur wrote:
>
> > I am using libcurl-7.16.0. I do see the response header
> saying chunk
> > encoding.
>
> You already sent this mail and I already replied...
>
> --
> Commercial curl and libcurl Technical Support:
> http://haxx.se/curl.html
>
Received on 2006-12-13