/********* Sample code generated by the curl command-line tool **********

* All curl_easy_setopt() options are documented at:

* https://curl.se/libcurl/c/curl_easy_setopt.html

************************************************************************/

int main(int argc, char *argv[])

curl_easy_setopt(hnd, CURLOPT_URL, “http://example.com”);

curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L);

curl_easy_setopt(hnd, CURLOPT_USERAGENT, “curl/7.45.0”);

curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);

curl_easy_setopt(hnd, CURLOPT_SSH_KNOWNHOSTS,

“/home/daniel/.ssh/known_hosts”);

curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);

/* Here is a list of options the curl code used that cannot get

generated as source easily. You may select to either not use them or

CURLOPT_WRITEDATA set to a objectpointer

CURLOPT_WRIT
Read More