Lines Matching refs:curl_lib

74   void* curl_lib = dlopen(NULL, RTLD_NOW);  in SendRequest()  local
75 if (!CheckCurlLib(curl_lib)) { in SendRequest()
79 dlclose(curl_lib); in SendRequest()
80 curl_lib = NULL; in SendRequest()
82 if (!curl_lib) { in SendRequest()
83 curl_lib = dlopen("libcurl.so", RTLD_NOW); in SendRequest()
85 if (!curl_lib) { in SendRequest()
88 curl_lib = dlopen("libcurl.so.4", RTLD_NOW); in SendRequest()
90 if (!curl_lib) { in SendRequest()
93 curl_lib = dlopen("libcurl-gnutls.so.4", RTLD_NOW); in SendRequest()
95 if (!curl_lib) { in SendRequest()
96 curl_lib = dlopen("libcurl.so.3", RTLD_NOW); in SendRequest()
98 if (!curl_lib) { in SendRequest()
103 *(void**) (&curl_easy_init) = dlsym(curl_lib, "curl_easy_init"); in SendRequest()
109 dlclose(curl_lib); in SendRequest()
115 *(void**) (&curl_easy_setopt) = dlsym(curl_lib, "curl_easy_setopt"); in SendRequest()
135 *(void**) (&curl_formadd) = dlsym(curl_lib, "curl_formadd"); in SendRequest()
157 *(void**) (&curl_slist_append) = dlsym(curl_lib, "curl_slist_append"); in SendRequest()
171 *(void**) (&curl_easy_perform) = dlsym(curl_lib, "curl_easy_perform"); in SendRequest()
175 *(void**) (&curl_easy_getinfo) = dlsym(curl_lib, "curl_easy_getinfo"); in SendRequest()
179 *(void**) (&curl_easy_strerror) = dlsym(curl_lib, "curl_easy_strerror"); in SendRequest()
190 *(void**) (&curl_easy_cleanup) = dlsym(curl_lib, "curl_easy_cleanup"); in SendRequest()
194 *(void**) (&curl_formfree) = dlsym(curl_lib, "curl_formfree"); in SendRequest()
199 *(void**) (&curl_slist_free_all) = dlsym(curl_lib, "curl_slist_free_all"); in SendRequest()
202 dlclose(curl_lib); in SendRequest()
207 bool HTTPUpload::CheckCurlLib(void* curl_lib) { in CheckCurlLib() argument
208 return curl_lib && in CheckCurlLib()
209 dlsym(curl_lib, "curl_easy_init") && in CheckCurlLib()
210 dlsym(curl_lib, "curl_easy_setopt"); in CheckCurlLib()