CURLOPT_READFUNCTION (3) Linux Manual Page
CURLOPT_READFUNCTION – read callback for data uploads Synopsis#include <curl/curl.h> size_t read_callback(char *buffer, size_t size, size_t nitems, void *instream); CURLcode curl_easy_setopt(CURL *handle, CURLOPT_READFUNCTION, read_callback); DescriptionPass a pointer to your callback function, as the prototype shows above. This callback function gets called by libcurl as soon as it needs to read data in order to send it…
