Lines Matching defs:curl
19 #include <curl/curl.h>
191 CURL * curl = curl_easy_init( );
192 curl_easy_setopt( curl, CURLOPT_USERAGENT, MY_NAME "/" LONG_VERSION_STRING );
193 curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, writeFunc );
194 curl_easy_setopt( curl, CURLOPT_WRITEDATA, writebuf );
195 curl_easy_setopt( curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
196 curl_easy_setopt( curl, CURLOPT_VERBOSE, getenv( "TR_CURL_VERBOSE" ) != NULL );
197 curl_easy_setopt( curl, CURLOPT_ENCODING, "" );
198 return curl;
208 CURL * curl;
229 curl = tr_curl_easy_init( buf );
230 curl_easy_setopt( curl, CURLOPT_URL, url );
231 curl_easy_setopt( curl, CURLOPT_TIMEOUT, TIMEOUT_SECS );
233 if(( res = curl_easy_perform( curl )))
240 curl_easy_getinfo( curl, CURLINFO_RESPONSE_CODE, &response );
285 curl_easy_cleanup( curl );