CURLOPT_WRITEFUNCTION (3) Linux Manual Page
CURLOPT_WRITEFUNCTION – set callback for writing received data Synopsis#include <curl/curl.h> size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userdata); CURLcode curl_easy_setopt(CURL *handle, CURLOPT_WRITEFUNCTION, write_callback);DescriptionPass a pointer to your callback function, which should match the prototype shown above. This callback function gets called by libcurl as soon as there is data received that needs to be…
