Home
last modified time | relevance | path

Searched refs:curl_handle (Results 1 – 15 of 15) 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, "http://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, &val); in main()
176 res = curl_easy_getinfo(curl_handle, CURLINFO_TOTAL_TIME, &val); in main()
181 res = curl_easy_getinfo(curl_handle, CURLINFO_SPEED_DOWNLOAD, &val); in main()
187 res = curl_easy_getinfo(curl_handle, CURLINFO_NAMELOOKUP_TIME, &val); in main()
[all …]
Dgetinmemory.c61 CURL *curl_handle; in main() local
72 curl_handle = curl_easy_init(); in main()
75 curl_easy_setopt(curl_handle, CURLOPT_URL, "http://www.example.com/"); in main()
78 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); in main()
81 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); in main()
85 curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0"); in main()
88 res = curl_easy_perform(curl_handle); in main()
107 curl_easy_cleanup(curl_handle); in main()
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()
147 curl_multi_socket_action(curl_handle, context->sockfd, flags, in curl_perform()
156 curl_multi_socket_action(curl_handle, CURL_SOCKET_TIMEOUT, 0, in on_timeout()
182 curl_multi_assign(curl_handle, s, (void *) curl_context); in handle_socket()
195 curl_multi_assign(curl_handle, s, NULL); in handle_socket()
219 curl_handle = curl_multi_init(); in main()
220 curl_multi_setopt(curl_handle, CURLMOPT_SOCKETFUNCTION, handle_socket); in main()
[all …]
Dxmlstream.c114 CURL *curl_handle; in main() local
131 curl_handle = curl_easy_init(); in main()
132 curl_easy_setopt(curl_handle, CURLOPT_URL, in main()
134 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, parseStreamCallback); in main()
135 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)parser); in main()
140 res = curl_easy_perform(curl_handle); in main()
161 curl_easy_cleanup(curl_handle); in main()
/external/libbrillo/brillo/http/
Dhttp_transport_curl.cc124 CURL* curl_handle = curl_interface_->EasyInit(); in CreateConnection() local
125 if (!curl_handle) { in CreateConnection()
133 CURLcode code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_URL, url); in CreateConnection()
136 code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_CAPATH, in CreateConnection()
141 curl_interface_->EasySetOptInt(curl_handle, CURLOPT_SSL_VERIFYPEER, 1); in CreateConnection()
145 curl_interface_->EasySetOptInt(curl_handle, CURLOPT_SSL_VERIFYHOST, 2); in CreateConnection()
149 curl_handle, CURLOPT_USERAGENT, user_agent); in CreateConnection()
153 curl_interface_->EasySetOptStr(curl_handle, CURLOPT_REFERER, referer); in CreateConnection()
156 code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_PROXY, proxy_); in CreateConnection()
163 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/libmicrohttpd/src/spdy2http/
Dproxy.c164 CURL *curl_handle; member
428 if(CURLE_OK != (ret = curl_easy_pause(proxy->curl_handle, CURLPAUSE_CONT))) in spdy_post_data_cb()
489 if(CURLM_OK != (ret = curl_multi_remove_handle(multi_handle, proxy->curl_handle))) in cleanup()
498 curl_easy_cleanup(proxy->curl_handle); in cleanup()
916 if(NULL == (proxy->curl_handle = curl_easy_init())) in standard_request_handler()
923 CURL_SETOPT(proxy->curl_handle, CURLOPT_VERBOSE, 1); in standard_request_handler()
929 CURL_SETOPT(proxy->curl_handle, CURLOPT_POST, 1); in standard_request_handler()
930 CURL_SETOPT(proxy->curl_handle, CURLOPT_READFUNCTION, curl_read_cb); in standard_request_handler()
931 CURL_SETOPT(proxy->curl_handle, CURLOPT_READDATA, proxy); in standard_request_handler()
935 CURL_SETOPT(proxy->curl_handle, CURLOPT_TIMEOUT, glob_opt.timeout); in standard_request_handler()
[all …]
/external/google-breakpad/src/third_party/curl/
Dmulti.h110 CURL *curl_handle);
120 CURL *curl_handle);
/external/curl/include/curl/
Dmulti.h133 CURL *curl_handle);
143 CURL *curl_handle);
/external/curl/packages/OS400/
Dcurl.inc.in2187 d curl_handle * value CURL *
2193 d curl_handle * value CURL *