CURL *curl; char errbuf[1024]; curl = curl_easy_init(); if (! curl) { fprintf(stderr, "Cannot initialize curl\n"); return 1; } curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf);
Done