cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Write call back not called for zero length files (curl version 7.24)

From: sandeep a <sandeep.a.sastry_at_gmail.com>
Date: Sun, 26 Feb 2012 16:27:20 +0400

>
> Just to add, I am not using the default callback by setting the FILE*, but
> I am using my own callback which accepts user data. If I use default curl
> write callback with FILE* as input or use my own callback, but with File*
> as user data the write callback is getting called for empty files. But if I
> pass user data as anything other than FILE* (in my case object of my
> application), callback is not getting called for empty files. Is this the
> expected behavior. I assume curl should just call me with whatever user
> data I set in the write callback and I will take care of reading and
> writing to file.
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-26