On 07/07/2017 11:34 AM, Daniel Stenberg wrote:

I added curl_form_data_cb() to the wiki page.

Seems to me this is not enough: we could have a rewind callback to support redirections and a "readdata free" callback function would be a great feature to release resources upon deletion.

What about something like:

|curl_form_data_cb(part, size, readfunction, rewindfunction, releasefunction, custom-pointer);|


with rewindfunction and releasefunction possibly NULL ?


The same rewind problem is also present for non-seekable files (i.e.: fifos and char devices): I'm afraid I have no suggestion for this.

Patrick
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to