curl-library
RE:
Date: Thu, 14 Dec 2006 16:41:49 -0600
Im not entirely sure how that would affect the chunks, but it fixes th
eproblem alrite!! Thanks for all your help!
F rom: Daniel Stenberg <daniel_at_haxx.se
<mailto:daniel_at_haxx.se?Subject=RE:%20FW:%20HTTP%20GET%20using%20easyc
url%20-%20HTTP%20chunks%20in%20HTTP%20response.> >
Date: 2006-12-14
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 Thu Dec 14 18:51:10 2006
Received on 2006-12-14