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 08:36:37 -0500

Yes, I took it from the examples and it works for fetching web pages.

Here I am trying to get a pdf test file but it prints only the first
few bytes for some reason. You should be able to compile and run it to
see what I am referring to.

Thanks

On 5/30/10, Kamil Dudka <kdudka_at_redhat.com> wrote:
> On Sunday 30 of May 2010 08:01:59 Kalidoss Sivasamy wrote:
>> I have this following code getting the binary data stored in a buffer.
>> While this gets all the data to the console fine (without WRITEDATA), it
>> doesn't get the complete data to the char buffer. WRITEFILE works fine as
>> well.
>>
>> Am I missing any options here?
>
> I see the code is sort of copy-pasted docs/examples/getinmemory.c. Is
> it just re-indented, or did you change anything else? Does the original
> example work fine for you?
>
> And please specify exactly, what is the actual/expected behavior of your
> example.
>
> Kamil
>

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