Home
last modified time | relevance | path

Searched refs:curl_handle (Results 1 – 14 of 14) sorted by relevance

/external/curl/docs/examples/
Dsepheaders.c40 CURL *curl_handle; in main() local
49 curl_handle = curl_easy_init(); in main()
52 curl_easy_setopt(curl_handle, CURLOPT_URL, "https://example.com"); in main()
55 curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L); in main()
58 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data); in main()
63 curl_easy_cleanup(curl_handle); in main()
70 curl_easy_cleanup(curl_handle); in main()
76 curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA, headerfile); in main()
79 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, bodyfile); in main()
82 curl_easy_perform(curl_handle); in main()
[all …]
Durl2file.c40 CURL *curl_handle; in main() local
52 curl_handle = curl_easy_init(); in main()
55 curl_easy_setopt(curl_handle, CURLOPT_URL, argv[1]); in main()
58 curl_easy_setopt(curl_handle, CURLOPT_VERBOSE, 1L); in main()
61 curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L); in main()
64 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data); in main()
71 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, pagefile); in main()
74 curl_easy_perform(curl_handle); in main()
81 curl_easy_cleanup(curl_handle); in main()
Dchkspeed.c65 CURL *curl_handle; in main() local
151 curl_handle = curl_easy_init(); in main()
154 curl_easy_setopt(curl_handle, CURLOPT_URL, url); in main()
157 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteCallback); in main()
161 curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, in main()
165 res = curl_easy_perform(curl_handle); in main()
171 res = curl_easy_getinfo(curl_handle, CURLINFO_SIZE_DOWNLOAD_T, &val); in main()
176 res = curl_easy_getinfo(curl_handle, CURLINFO_TOTAL_TIME_T, &val); in main()
182 res = curl_easy_getinfo(curl_handle, CURLINFO_SPEED_DOWNLOAD_T, &val); in main()
189 res = curl_easy_getinfo(curl_handle, CURLINFO_NAMELOOKUP_TIME_T, &val); in main()
[all …]
Dmulti-uv.c41 CURLM *curl_handle; variable
92 curl_multi_add_handle(curl_handle, handle); in add_download()
104 while((message = curl_multi_info_read(curl_handle, &pending))) { in check_multi_info()
118 curl_multi_remove_handle(curl_handle, easy_handle); in check_multi_info()
145 curl_multi_socket_action(curl_handle, context->sockfd, flags, in curl_perform()
154 curl_multi_socket_action(curl_handle, CURL_SOCKET_TIMEOUT, 0, in on_timeout()
186 curl_multi_assign(curl_handle, s, (void *) curl_context); in handle_socket()
199 curl_multi_assign(curl_handle, s, NULL); in handle_socket()
223 curl_handle = curl_multi_init(); in main()
224 curl_multi_setopt(curl_handle, CURLMOPT_SOCKETFUNCTION, handle_socket); in main()
[all …]
Dgetinmemory.c62 CURL *curl_handle; in main() local
73 curl_handle = curl_easy_init(); in main()
76 curl_easy_setopt(curl_handle, CURLOPT_URL, "https://www.example.com/"); in main()
79 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); in main()
82 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); in main()
86 curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0"); in main()
89 res = curl_easy_perform(curl_handle); in main()
108 curl_easy_cleanup(curl_handle); in main()
Dxmlstream.c115 CURL *curl_handle; in main() local
132 curl_handle = curl_easy_init(); in main()
133 curl_easy_setopt(curl_handle, CURLOPT_URL, in main()
135 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, parseStreamCallback); in main()
136 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)parser); in main()
141 res = curl_easy_perform(curl_handle); in main()
162 curl_easy_cleanup(curl_handle); in main()
/external/libbrillo/brillo/http/
Dhttp_transport_curl.cc125 CURL* curl_handle = curl_interface_->EasyInit(); in CreateConnection() local
126 if (!curl_handle) { in CreateConnection()
134 CURLcode code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_URL, url); in CreateConnection()
137 code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_CAPATH, in CreateConnection()
142 curl_interface_->EasySetOptInt(curl_handle, CURLOPT_SSL_VERIFYPEER, 1); in CreateConnection()
146 curl_interface_->EasySetOptInt(curl_handle, CURLOPT_SSL_VERIFYHOST, 2); in CreateConnection()
150 curl_handle, CURLOPT_USERAGENT, user_agent); in CreateConnection()
154 curl_interface_->EasySetOptStr(curl_handle, CURLOPT_REFERER, referer); in CreateConnection()
157 code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_PROXY, proxy_); in CreateConnection()
164 curl_handle, CURLOPT_TIMEOUT_MS, in CreateConnection()
[all …]
Dcurl_api.cc137 CURLMcode CurlApi::MultiAddHandle(CURLM* multi_handle, CURL* curl_handle) { in MultiAddHandle() argument
138 return curl_multi_add_handle(multi_handle, curl_handle); in MultiAddHandle()
141 CURLMcode CurlApi::MultiRemoveHandle(CURLM* multi_handle, CURL* curl_handle) { in MultiRemoveHandle() argument
142 return curl_multi_remove_handle(multi_handle, curl_handle); in MultiRemoveHandle()
Dcurl_api.h84 virtual CURLMcode MultiAddHandle(CURLM* multi_handle, CURL* curl_handle) = 0;
88 CURL* curl_handle) = 0;
183 CURLMcode MultiAddHandle(CURLM* multi_handle, CURL* curl_handle) override;
186 CURLMcode MultiRemoveHandle(CURLM* multi_handle, CURL* curl_handle) override;
Dhttp_connection_curl.cc53 Connection::Connection(CURL* curl_handle, in Connection() argument
59 curl_handle_(curl_handle), in Connection()
Dhttp_connection_curl.h25 Connection(CURL* curl_handle,
/external/google-breakpad/src/third_party/curl/
Dmulti.h110 CURL *curl_handle);
120 CURL *curl_handle);
/external/curl/include/curl/
Dmulti.h135 CURL *curl_handle);
145 CURL *curl_handle);
/external/curl/packages/OS400/
Dcurl.inc.in2497 d curl_handle * value CURL *
2503 d curl_handle * value CURL *