Lines Matching defs:curl
88 #include <curl/curl.h>
142 CURL * curl;
207 curl_easy_setopt(p->curl, CURLOPT_URL, accessinfo);
214 curl_easy_setopt(p->curl, CURLOPT_URL, accessinfo);
231 static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm)
413 if(!(p.curl = curl_easy_init())) {
414 BIO_printf(p.errorbio, "Cannot init curl lib\n");
475 curl_easy_setopt(p.curl, CURLOPT_URL, serverurl);
479 curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
480 curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE, (long)tabLength);
487 curl_easy_setopt(p.curl, CURLOPT_HTTPHEADER, headers);
495 curl_easy_setopt(p.curl, CURLOPT_WRITEDATA, outfp);
498 res = curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_FUNCTION, sslctxfun);
504 curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_DATA, &p);
519 curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
520 curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE, (long)tabLength);
526 res = curl_easy_perform(p.curl));
528 int result =curl_easy_getinfo(p.curl, CURLINFO_CONTENT_TYPE, &response);
546 curl_easy_cleanup(p.curl);