Home
last modified time | relevance | path

Searched refs:curl_easy_setopt (Results 1 – 25 of 187) sorted by relevance

12345678

/external/curl/docs/examples/
Dftpuploadresume.c82 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in upload()
84 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in upload()
87 curl_easy_setopt(curlhandle, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout); in upload()
89 curl_easy_setopt(curlhandle, CURLOPT_HEADERFUNCTION, getcontentlengthfunc); in upload()
90 curl_easy_setopt(curlhandle, CURLOPT_HEADERDATA, &uploaded_len); in upload()
92 curl_easy_setopt(curlhandle, CURLOPT_WRITEFUNCTION, discardfunc); in upload()
94 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc); in upload()
95 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in upload()
98 curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-"); in upload()
99 curl_easy_setopt(curlhandle, CURLOPT_FTP_CREATE_MISSING_DIRS, 1L); in upload()
[all …]
Dcacertinmem.c128 curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main()
129 curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main()
130 curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main()
131 curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main()
132 curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, *writefunction); in main()
133 curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main()
134 curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, *writefunction); in main()
135 curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr); in main()
136 curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); in main()
137 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L); in main()
[all …]
Dusercertinmem.c182 curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main()
183 curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main()
184 curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main()
185 curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main()
186 curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, writefunction); in main()
187 curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main()
188 curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, writefunction); in main()
189 curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr); in main()
190 curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); in main()
195 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 0L); in main()
[all …]
Dsimplessl.c81 curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site"); in main()
82 curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile); in main()
87 if(curl_easy_setopt(curl, CURLOPT_SSLENGINE, pEngine) != CURLE_OK) { in main()
92 if(curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 1L) != CURLE_OK) { in main()
102 curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, "PEM"); in main()
105 curl_easy_setopt(curl, CURLOPT_SSLCERT, pCertFile); in main()
110 curl_easy_setopt(curl, CURLOPT_KEYPASSWD, pPassphrase); in main()
114 curl_easy_setopt(curl, CURLOPT_SSLKEYTYPE, pKeyType); in main()
117 curl_easy_setopt(curl, CURLOPT_SSLKEY, pKeyName); in main()
120 curl_easy_setopt(curl, CURLOPT_CAINFO, pCACertFile); in main()
[all …]
Dsmtp-tls.c98 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
99 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
105 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mainserver.example.net:587"); in main()
112 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
125 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
134 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM); in main()
141 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
146 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); in main()
147 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); in main()
148 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
[all …]
Dsmtp-ssl.c98 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
99 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
103 curl_easy_setopt(curl, CURLOPT_URL, "smtps://mainserver.example.net"); in main()
114 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
122 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
132 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM); in main()
139 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
144 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); in main()
145 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); in main()
146 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
[all …]
Dcrawler.c72 curl_easy_setopt(handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS); in make_handle()
73 curl_easy_setopt(handle, CURLOPT_URL, url); in make_handle()
79 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, grow_buffer); in make_handle()
80 curl_easy_setopt(handle, CURLOPT_WRITEDATA, mem); in make_handle()
81 curl_easy_setopt(handle, CURLOPT_PRIVATE, mem); in make_handle()
84 curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, ""); in make_handle()
85 curl_easy_setopt(handle, CURLOPT_TIMEOUT, 5L); in make_handle()
86 curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L); in make_handle()
87 curl_easy_setopt(handle, CURLOPT_MAXREDIRS, 10L); in make_handle()
88 curl_easy_setopt(handle, CURLOPT_CONNECTTIMEOUT, 2L); in make_handle()
[all …]
Dsmtp-authzid.c105 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com:587"); in main()
108 curl_easy_setopt(curl, CURLOPT_USERNAME, "kurt"); in main()
109 curl_easy_setopt(curl, CURLOPT_PASSWORD, "xipj3plmq"); in main()
112 curl_easy_setopt(curl, CURLOPT_SASL_AUTHZID, "ursel"); in main()
115 curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, "AUTH=PLAIN"); in main()
124 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM_ADDR); in main()
129 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
134 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); in main()
135 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); in main()
136 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
Dsftpuploadresume.c54 curl_easy_setopt(curlHandlePtr, CURLOPT_VERBOSE, 1L); in sftpGetRemoteFileSize()
56 curl_easy_setopt(curlHandlePtr, CURLOPT_URL, i_remoteFile); in sftpGetRemoteFileSize()
57 curl_easy_setopt(curlHandlePtr, CURLOPT_NOPROGRESS, 1); in sftpGetRemoteFileSize()
58 curl_easy_setopt(curlHandlePtr, CURLOPT_NOBODY, 1); in sftpGetRemoteFileSize()
59 curl_easy_setopt(curlHandlePtr, CURLOPT_HEADER, 1); in sftpGetRemoteFileSize()
60 curl_easy_setopt(curlHandlePtr, CURLOPT_FILETIME, 1); in sftpGetRemoteFileSize()
95 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in sftpResumeUpload()
96 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in sftpResumeUpload()
97 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc); in sftpResumeUpload()
98 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in sftpResumeUpload()
[all …]
Danyauthput.c126 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); in main()
129 curl_easy_setopt(curl, CURLOPT_READDATA, (void *)&hd); in main()
132 curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, my_ioctl); in main()
135 curl_easy_setopt(curl, CURLOPT_IOCTLDATA, (void *)&hd); in main()
138 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
142 curl_easy_setopt(curl, CURLOPT_URL, url); in main()
146 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, in main()
152 curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY); in main()
155 curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password"); in main()
Dexternalsocket.c113 curl_easy_setopt(curl, CURLOPT_URL, "http://99.99.99.99:9999"); in main()
140 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L); in main()
143 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data); in main()
146 curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, opensocket); in main()
147 curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA, &sockfd); in main()
150 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, closecb); in main()
151 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETDATA, &sockfd); in main()
154 curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION, sockopt_callback); in main()
156 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); in main()
Dpost-callback.c87 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/index.cgi"); in main()
90 curl_easy_setopt(curl, CURLOPT_POST, 1L); in main()
93 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); in main()
96 curl_easy_setopt(curl, CURLOPT_READDATA, &wt); in main()
99 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
113 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); in main()
120 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)wt.sizeleft); in main()
136 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); in main()
Dpop3-tls.c46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
50 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); in main()
57 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
71 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
76 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
Dimap-tls.c46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
50 curl_easy_setopt(curl, CURLOPT_URL, in main()
58 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
72 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
77 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
Dpop3-ssl.c46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
51 curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1"); in main()
62 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
70 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
76 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
Dimap-ssl.c46 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
47 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
51 curl_easy_setopt(curl, CURLOPT_URL, in main()
63 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
71 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
77 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
Dimap-append.c98 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
99 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
104 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/100"); in main()
109 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); in main()
110 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); in main()
111 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
117 curl_easy_setopt(curl, CURLOPT_INFILESIZE, infilesize); in main()
Dftp-wildcard.c63 curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L); in main()
66 curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_coming); in main()
69 curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded); in main()
72 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_it); in main()
75 curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data); in main()
76 curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data); in main()
82 curl_easy_setopt(handle, CURLOPT_URL, argv[1]); in main()
84 curl_easy_setopt(handle, CURLOPT_URL, "ftp://example.com/test/*"); in main()
Dftpuploadfrommem.c90 curl_easy_setopt(curl, CURLOPT_URL, in main()
94 curl_easy_setopt(curl, CURLOPT_USERPWD, "login:secret"); in main()
97 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
100 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); in main()
103 curl_easy_setopt(curl, CURLOPT_READDATA, &upload); in main()
106 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
109 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, in main()
Dhttp2-upload.c208 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup()
211 curl_easy_setopt(hnd, CURLOPT_READFUNCTION, read_callback); in setup()
213 curl_easy_setopt(hnd, CURLOPT_READDATA, i); in setup()
215 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, uploadsize); in setup()
218 curl_easy_setopt(hnd, CURLOPT_URL, url); in setup()
221 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); in setup()
224 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup()
225 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup()
226 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, i); in setup()
229 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup()
[all …]
/external/tensorflow/tensorflow/core/platform/cloud/
Dcurl_http_request.cc52 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anonc69085df0111::LibCurlProxy
54 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt()
57 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anonc69085df0111::LibCurlProxy
59 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt()
62 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anonc69085df0111::LibCurlProxy
64 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt()
67 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anonc69085df0111::LibCurlProxy
70 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt()
73 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anonc69085df0111::LibCurlProxy
76 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt()
[all …]
/external/google-breakpad/src/common/linux/
Dhttp_upload.cc114 CURLcode (*curl_easy_setopt)(CURL *, CURLoption, ...); in SendRequest() local
115 *(void**) (&curl_easy_setopt) = dlsym(curl_lib, "curl_easy_setopt"); in SendRequest()
116 (*curl_easy_setopt)(curl, CURLOPT_URL, url.c_str()); in SendRequest()
117 (*curl_easy_setopt)(curl, CURLOPT_USERAGENT, kUserAgent); in SendRequest()
121 (*curl_easy_setopt)(curl, CURLOPT_NOSIGNAL, 1); in SendRequest()
124 (*curl_easy_setopt)(curl, CURLOPT_PROXY, proxy.c_str()); in SendRequest()
126 (*curl_easy_setopt)(curl, CURLOPT_PROXYUSERPWD, proxy_user_pwd.c_str()); in SendRequest()
129 (*curl_easy_setopt)(curl, CURLOPT_CAINFO, ca_certificate_file.c_str()); in SendRequest()
151 (*curl_easy_setopt)(curl, CURLOPT_HTTPPOST, formpost); in SendRequest()
159 (*curl_easy_setopt)(curl, CURLOPT_HTTPHEADER, headerlist); in SendRequest()
[all …]
/external/curl/tests/data/
Dtest140165 * All curl_easy_setopt() options are documented at:
66 * https://curl.haxx.se/libcurl/c/curl_easy_setopt.html
81 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
82 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1401");
83 curl_easy_setopt(hnd, CURLOPT_USERPWD, "fake:user");
84 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_BASIC);
85 curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, slist1);
86 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "MyUA");
87 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
88 curl_easy_setopt(hnd, CURLOPT_COOKIE, "chocolate=chip");
[all …]
/external/curl/tests/libtest/
Dlib1523.c51 curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_LIMIT, limit); in run()
52 curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_TIME, time); in run()
61 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test()
62 curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, write_cb); in test()
63 curl_easy_setopt(hnd, CURLOPT_ERRORBUFFER, buffer); in test()
64 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 0L); in test()
65 curl_easy_setopt(hnd, CURLOPT_XFERINFOFUNCTION, dload_progress_cb); in test()
Dlib1507.c67 curl_easy_setopt(curl, CURLOPT_URL, URL); in test()
69 curl_easy_setopt(curl, CURLOPT_USERNAME, USERNAME); in test()
70 curl_easy_setopt(curl, CURLOPT_PASSWORD, PASSWORD); in test()
72 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
73 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); in test()
74 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, MAILFROM); in test()
75 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, rcpt_list); in test()
76 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in test()

12345678