cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 14 Dec 2006 18:43:44 +0100 (CET)

On Thu, 14 Dec 2006, Rangoli Mathur wrote:

> In write_data function I am just gathering the data, so I can see the
> response after the perform call returns.

[...]

> size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
> {
> strData += ((char*) ptr);
> return (nmemb * size);
> }

Allow me to quote the manual:

  "The size of the data pointed to by ptr is size multiplied with nmemb, it
  will not be zero terminated."

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