8
curl = curl_easy_init();
10
/* First set the URL that is about to receive our POST. */
11
curl_easy_setopt(curl, CURLOPT_URL, URL);
12
curl_easy_setopt(curl, CURLOPT_HTTPPOST, NULL);
13
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); /* show verbose for debug */
14
curl_easy_setopt(curl, CURLOPT_HEADER, 1); /* include header */
16
/* Now, we should be making a zero byte POST request */
17
res = curl_easy_perform(curl);
20
curl_easy_cleanup(curl);