cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can I send only part of a file?

From: Saqib Ali <saqib.ali.75_at_gmail.com>
Date: Tue, 10 May 2011 11:07:47 -0400

> The data sent by by libcurl comes from the CURLOPT_READFUNCTION callback
> function which is part of your app. Once the app has finished sending all
it
> wants, just return the end-of-file indication to libcurl (instead of more
> data) and it will complete the transfer.
>
>>> Dan

Ok. Great.
So the CURL_OPT_INFILESIZE is then only used as one of the arguments to the
progress callback function (dltotal or ultotal)? Is it ever used for
anything else?

- Saqib

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