Home | History | Annotate | Download | only in examples

Lines Matching refs:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
27 #include <curl/curl.h>
31 CURL *curl;
37 /* get a curl handle */
38 curl = curl_easy_init();
39 if(curl) {
43 curl_easy_setopt(curl, CURLOPT_URL, "http://postit.example.com/moo.cgi");
45 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "name=daniel&project=curl");
48 res = curl_easy_perform(curl);
55 curl_easy_cleanup(curl);