Lines Matching defs:rcCurl

79 #define CURL_FAILED(rcCurl) (RT_UNLIKELY(rcCurl != CURLE_OK))
82 #define RTHTTP_VALID_RETURN_RC(hHttp, rcCurl) \
84 AssertPtrReturn((hHttp), (rcCurl)); \
85 AssertReturn((hHttp)->u32Magic == RTHTTP_MAGIC, (rcCurl)); \
103 CURLcode rcCurl = curl_global_init(CURL_GLOBAL_ALL);
104 if (CURL_FAILED(rcCurl))
207 int rcCurl;
210 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROXY, &szProxy[sizeof("http://") - 1]);
211 if (CURL_FAILED(rcCurl))
213 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROXYPORT, 80);
214 if (CURL_FAILED(rcCurl))
219 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROXY, &szProxy[sizeof("http://") - 1]);
220 if (CURL_FAILED(rcCurl))
237 int rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROXY, pcszProxy);
238 if (CURL_FAILED(rcCurl))
243 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROXYPORT, (long)uPort);
244 if (CURL_FAILED(rcCurl))
250 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROXYUSERNAME, pcszProxyUser);
251 if (CURL_FAILED(rcCurl))
254 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROXYPASSWORD, pcszProxyPwd);
255 if (CURL_FAILED(rcCurl))
280 int rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_HTTPHEADER, pHeaders);
281 if (CURL_FAILED(rcCurl))
366 * @param rcCurl What curl returned.
368 static int rtHttpGetCalcStatus(PRTHTTPINTERNAL pHttpInt, int rcCurl)
377 if (rcCurl == CURLE_OK)
414 switch (rcCurl)
454 int rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_URL, pcszUrl);
455 if (CURL_FAILED(rcCurl))
459 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_VERBOSE, 1);
460 if (CURL_FAILED(rcCurl))
469 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_CAINFO, pcszCAFile);
470 if (CURL_FAILED(rcCurl))
475 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_WRITEFUNCTION, &rtHttpWriteData);
476 if (CURL_FAILED(rcCurl))
478 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_WRITEDATA, (void*)&chunk);
479 if (CURL_FAILED(rcCurl))
481 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROGRESSFUNCTION, &rtHttpProgress);
482 if (CURL_FAILED(rcCurl))
484 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROGRESSDATA, (void*)pHttpInt);
485 if (CURL_FAILED(rcCurl))
487 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_NOPROGRESS, (long)0);
488 if (CURL_FAILED(rcCurl))
490 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_SSLVERSION, (long)CURL_SSLVERSION_TLSv1);
491 if (CURL_FAILED(rcCurl))
494 rcCurl = curl_easy_perform(pHttpInt->pCurl);
495 int rc = rtHttpGetCalcStatus(pHttpInt, rcCurl);
542 int rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_URL, pszUrl);
543 if (CURL_FAILED(rcCurl))
547 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_VERBOSE, 1);
548 if (CURL_FAILED(rcCurl))
557 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_CAINFO, pcszCAFile);
558 if (CURL_FAILED(rcCurl))
562 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_WRITEFUNCTION, &rtHttpWriteDataToFile);
563 if (CURL_FAILED(rcCurl))
565 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROGRESSFUNCTION, &rtHttpProgress);
566 if (CURL_FAILED(rcCurl))
568 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_PROGRESSDATA, (void*)pHttpInt);
569 if (CURL_FAILED(rcCurl))
571 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_NOPROGRESS, (long)0);
572 if (CURL_FAILED(rcCurl))
582 rcCurl = curl_easy_setopt(pHttpInt->pCurl, CURLOPT_WRITEDATA, (void *)(uintptr_t)hFile);
583 if (!CURL_FAILED(rcCurl))
588 rcCurl = curl_easy_perform(pHttpInt->pCurl);
589 rc = rtHttpGetCalcStatus(pHttpInt, rcCurl);