Lines Matching defs:curl
85 #include <curl/curl.h>
134 CURL * curl;
199 curl_easy_setopt(p->curl, CURLOPT_URL,accessinfo);
206 curl_easy_setopt(p->curl, CURLOPT_URL,accessinfo);
215 /* This is an example of an curl SSL initialisation call back. The callback sets:
222 static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) {
377 if (!(p.curl = curl_easy_init())) {
378 BIO_printf(p.errorbio, "Cannot init curl lib\n");
435 curl_easy_setopt(p.curl, CURLOPT_URL, serverurl);
439 curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
440 curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,(long)tabLength);
447 curl_easy_setopt(p.curl, CURLOPT_HTTPHEADER, headers);
455 curl_easy_setopt(p.curl, CURLOPT_WRITEDATA, outfp);
458 res = curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_FUNCTION, sslctxfun) ;
463 curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_DATA, &p);
478 curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
479 curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,(long)tabLength);
485 res = curl_easy_perform(p.curl));
487 int result =curl_easy_getinfo(p.curl,CURLINFO_CONTENT_TYPE,&response);
505 curl_easy_cleanup(p.curl);