occurlfunctions.c#80 | CURLcode cstat = CURLE_OK; |
#81 | cstat = OCCURLERR(state,curl_easy_setopt(state->curl,flag,value)); |
#82 | if(cstat != CURLE_OK) |
ocdebug.c#72 | ocreportcurlerror(OCstate* state, CURLcode cstat) |
#74 | if(cstat != CURLE_OK) { |
#75 | fprintf(stderr,"CURL Error: %s",curl_easy_strerror(cstat)); |
#81 | return cstat; |
ocdebug.h#88 | extern CURLcode ocreportcurlerror(struct OCstate* state, CURLcode cstat); |
ochttp.c#26 | CURLcode cstat = CURLE_OK; |
#29 | cstat = CURLERR(curl_easy_getinfo(curl,CURLINFO_RESPONSE_CODE,&httpcode)); |
#31 | cstat = curl_easy_getinfo(curl,CURLINFO_HTTP_CODE,&httpcode); |
#33 | if(cstat != CURLE_OK) httpcode = 0; |
#42 | CURLcode cstat = CURLE_OK; |
#46 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_URL, (void*)url)); |
#47 | if (cstat != CURLE_OK) |
#51 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteFileCallback)); |
#52 | if (cstat != CURLE_OK) |
#56 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&fetchdata)); |
#57 | if (cstat != CURLE_OK) |
#61 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_FILETIME, (long)1)); |
#62 | if (cstat != CURLE_OK) |
#67 | cstat = CURLERR(curl_easy_perform(curl)); |
#69 | if (cstat != CURLE_OK) |
#81 | cstat = curl_easy_getinfo(curl,CURLINFO_FILETIME,filetime); |
#82 | if(cstat != CURLE_OK) goto fail; |
#87 | oclog(OCLOGERR, "curl error: %s", curl_easy_strerror(cstat)); |
#96 | CURLcode cstat = CURLE_OK; |
#101 | cstat = CURLERR(CURLERR(curl_easy_setopt(curl, CURLOPT_URL, (void*)url))); |
#102 | if (cstat != CURLE_OK) |
#109 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_USERNAME, creds->username)); |
#110 | if (cstat != CURLE_OK) |
#112 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_PASSWORD, creds->password)); |
#113 | if (cstat != CURLE_OK) |
#117 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_USERPWD, tbuf)); |
#118 | if (cstat != CURLE_OK) |
#125 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback)); |
#126 | if (cstat != CURLE_OK) |
#130 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void*)buf)); |
#131 | if (cstat != CURLE_OK) |
#135 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_FILETIME, (long)1)); |
#137 | cstat = CURLERR(curl_easy_perform(curl)); |
#139 | if(cstat == CURLE_PARTIAL_FILE) { |
#142 | curl_easy_strerror(cstat)); |
#143 | cstat = CURLE_OK; |
#147 | if(cstat != CURLE_OK) goto fail; |
#151 | cstat = CURLERR(curl_easy_getinfo(curl,CURLINFO_FILETIME,filetime)); |
#152 | if(cstat != CURLE_OK) goto fail; |
#165 | oclog(OCLOGERR, "curl error: %s", curl_easy_strerror(cstat)); |
#266 | CURLcode cstat = CURLE_OK; |
#273 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1)); |
#274 | if (cstat != CURLE_OK) |
#293 | CURLcode cstat = CURLE_OK; |
#296 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_URL, (void*)url)); |
#297 | if (cstat != CURLE_OK) |
#301 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30)); /* 30sec timeout*/ |
#302 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2)); |
#303 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_HEADER, 1)); |
#304 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_NOBODY, 1)); |
#305 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1)); |
#306 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_FILETIME, (long)1)); |
#308 | cstat = CURLERR(curl_easy_perform(curl)); |
#309 | if(cstat != CURLE_OK) goto fail; |
#311 | cstat = CURLERR(curl_easy_getinfo(curl,CURLINFO_FILETIME,filetime)); |
#312 | if(cstat != CURLE_OK) goto fail; |
#317 | oclog(OCLOGERR, "curl error: %s", curl_easy_strerror(cstat)); |
#325 | CURLcode cstat = CURLE_OK; |
#334 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 10L)); |
#335 | if (cstat != CURLE_OK) |
#337 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L)); |
#338 | if (cstat != CURLE_OK) |
#342 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long)10)); |
#343 | if (cstat != CURLE_OK) |
#347 | cstat = CURLERR(curl_easy_setopt(curl, CURLOPT_FAILONERROR, (long)1)); |
#348 | if (cstat != CURLE_OK) |
#357 | cstat = CURLERR(curl_easy_getinfo(curl,CURLINFO_RESPONSE_CODE, &http_code)); |
#358 | if (cstat != CURLE_OK) |
#361 | cstat = CURLE_HTTP_RETURNED_ERROR; |
#370 | if(cstat != CURLE_OK) { |
#371 | oclog(OCLOGERR, "curl error: %s", curl_easy_strerror(cstat)); |
HyperKWIC - Version 7.20DA executed at 11:37 on 27 Oct 2017 | Polyhedron Solutions - INTERNAL USE | COMMERCIAL (Any O/S) SN 4AKIed