cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with CURLOPT_WRITEDATA getting Binary data

From: Tor Arntsen <tor_at_spacetec.no>
Date: Sun, 30 May 2010 16:21:10 +0200

On Sun, May 30, 2010 at 08:01, Kalidoss Sivasamy <kalidoss2_at_gmail.com> wrote:
> Hello all,
>
> I have this following code getting the binary data stored in a buffer[..]
----------------------------------------------^^^^^^^^^^^^^--

>     printf("Data [%s]\n", chunk.memory);
---------------------^^^^

That will print only to the first \0.

-Tor
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-30