CURLOPT_HEADERFUNCTION (3) Linux Manual Page
CURLOPT_HEADERFUNCTION – callback that receives header data Synopsis#include <curl/curl.h> size_t header_callback(char *buffer, size_t size, size_t nitems, void *userdata); CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HEADERFUNCTION, header_callback); DescriptionPass a pointer to your callback function, which should match the prototype shown above. This function gets called by libcurl as soon as it has received header data. The header callback will be…
