Skip to content

Instantly share code, notes, and snippets.

#include <curl/curl.h>
size_t
handle_response(char * ptr, size_t size, size_t nmemb, void *userdata)
{
std::string current{ptr, size*nmemb};
std::string *response = (std::string *)userdata;
*response += current;