Home | History | Annotate | Download | only in examples

Lines Matching refs:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
28 #include <curl/curl.h>
32 CURL *curl;
37 curl = curl_easy_init();
38 if(curl) {
39 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
40 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postthis);
44 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
47 res = curl_easy_perform(curl);
54 curl_easy_cleanup(curl);