cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with CURLOPT_WRITEDATA getting Binary data

From: Kalidoss Sivasamy <kalidoss2_at_gmail.com>
Date: Sun, 30 May 2010 09:50:14 -0500

Not really. chunk.memory is a char*.

On Sun, May 30, 2010 at 9:21 AM, Tor Arntsen <tor_at_spacetec.no> wrote:

> 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
>

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