Lines Matching refs:code
91 CURLcode code; in init() local
100 code = curl_easy_setopt(conn, CURLOPT_ERRORBUFFER, errorBuffer); in init()
101 if(code != CURLE_OK) { in init()
102 fprintf(stderr, "Failed to set error buffer [%d]\n", code); in init()
106 code = curl_easy_setopt(conn, CURLOPT_URL, url); in init()
107 if(code != CURLE_OK) { in init()
112 code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1L); in init()
113 if(code != CURLE_OK) { in init()
118 code = curl_easy_setopt(conn, CURLOPT_WRITEFUNCTION, writer); in init()
119 if(code != CURLE_OK) { in init()
124 code = curl_easy_setopt(conn, CURLOPT_WRITEDATA, &buffer); in init()
125 if(code != CURLE_OK) { in init()
260 CURLcode code; in main() local
281 code = curl_easy_perform(conn); in main()
284 if(code != CURLE_OK) { in main()