Lines Matching refs:curl_lib

75   void* curl_lib = dlopen(NULL, RTLD_NOW);  in SendRequest()  local
76 if (!curl_lib || dlsym(curl_lib, "curl_easy_init") == NULL) { in SendRequest()
78 dlclose(curl_lib); in SendRequest()
79 curl_lib = NULL; in SendRequest()
81 if (!curl_lib) { in SendRequest()
82 curl_lib = dlopen("libcurl.so", RTLD_NOW); in SendRequest()
84 if (!curl_lib) { in SendRequest()
87 curl_lib = dlopen("libcurl.so.4", RTLD_NOW); in SendRequest()
89 if (!curl_lib) { in SendRequest()
92 curl_lib = dlopen("libcurl-gnutls.so.4", RTLD_NOW); in SendRequest()
94 if (!curl_lib) { in SendRequest()
95 curl_lib = dlopen("libcurl.so.3", RTLD_NOW); in SendRequest()
97 if (!curl_lib) { in SendRequest()
102 *(void**) (&curl_easy_init) = dlsym(curl_lib, "curl_easy_init"); in SendRequest()
108 dlclose(curl_lib); in SendRequest()
114 *(void**) (&curl_easy_setopt) = dlsym(curl_lib, "curl_easy_setopt"); in SendRequest()
130 *(void**) (&curl_formadd) = dlsym(curl_lib, "curl_formadd"); in SendRequest()
150 *(void**) (&curl_slist_append) = dlsym(curl_lib, "curl_slist_append"); in SendRequest()
164 *(void**) (&curl_easy_perform) = dlsym(curl_lib, "curl_easy_perform"); in SendRequest()
168 *(void**) (&curl_easy_getinfo) = dlsym(curl_lib, "curl_easy_getinfo"); in SendRequest()
172 *(void**) (&curl_easy_strerror) = dlsym(curl_lib, "curl_easy_strerror"); in SendRequest()
183 *(void**) (&curl_easy_cleanup) = dlsym(curl_lib, "curl_easy_cleanup"); in SendRequest()
187 *(void**) (&curl_formfree) = dlsym(curl_lib, "curl_formfree"); in SendRequest()
192 *(void**) (&curl_slist_free_all) = dlsym(curl_lib, "curl_slist_free_all"); in SendRequest()
195 dlclose(curl_lib); in SendRequest()