• Home
  • Raw
  • Download

Lines Matching full:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
33 #include <curl/curl.h>
36 print_cookies(CURL *curl) in print_cookies() argument
43 printf("Cookies, curl knows:\n"); in print_cookies()
44 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies()
46 fprintf(stderr, "Curl curl_easy_getinfo failed: %s\n", in print_cookies()
66 CURL *curl; in main() local
70 curl = curl_easy_init(); in main()
71 if(curl) { in main()
74 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/"); in main()
75 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
76 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* start cookie engine */ in main()
77 res = curl_easy_perform(curl); in main()
79 fprintf(stderr, "Curl perform failed: %s\n", curl_easy_strerror(res)); in main()
83 print_cookies(curl); in main()
85 printf("Erasing curl's knowledge of cookies!\n"); in main()
86 curl_easy_setopt(curl, CURLOPT_COOKIELIST, "ALL"); in main()
88 print_cookies(curl); in main()
100 res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline); in main()
102 fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", in main()
116 res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline); in main()
118 fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", in main()
123 print_cookies(curl); in main()
125 res = curl_easy_perform(curl); in main()
127 fprintf(stderr, "Curl perform failed: %s\n", curl_easy_strerror(res)); in main()
131 curl_easy_cleanup(curl); in main()
134 fprintf(stderr, "Curl init failed!\n"); in main()