Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
30 #include <curl/curl.h>
33 print_cookies(CURL *curl)
40 printf("Cookies, curl knows:\n");
41 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies);
61 CURL *curl;
65 curl = curl_easy_init();
66 if (curl) {
69 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
70 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
71 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* just to start the cookie engine */
72 res = curl_easy_perform(curl);
78 print_cookies(curl);
80 printf("Erasing curl's knowledge of cookies!\n");
81 curl_easy_setopt(curl, CURLOPT_COOKIELIST, "ALL");
83 print_cookies(curl);
93 res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
103 res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
109 print_cookies(curl);
111 res = curl_easy_perform(curl);