/external/curl/docs/examples/ |
D | ftpuploadresume.c | 82 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 …]
|
D | cacertinmem.c | 131 rv = curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main() 132 rv = curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main() 133 rv = curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main() 134 rv = curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main() 135 rv = curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, *writefunction); in main() 136 rv = curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main() 137 rv = curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, *writefunction); in main() 138 rv = curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr); in main() 139 rv = curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); in main() 140 rv = curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L); in main() [all …]
|
D | usercertinmem.c | 182 rv = curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main() 183 rv = curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main() 184 rv = curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main() 185 rv = curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main() 186 rv = curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, writefunction); in main() 187 rv = curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main() 188 rv = curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, writefunction); in main() 189 rv = curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr); in main() 190 rv = curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); in main() 195 rv = curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 0L); in main() [all …]
|
D | simplessl.c | 81 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 …]
|
D | smtp-tls.c | 98 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 …]
|
D | smtp-ssl.c | 98 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 …]
|
D | crawler.c | 72 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 …]
|
D | sftpuploadresume.c | 55 curl_easy_setopt(curlHandlePtr, CURLOPT_VERBOSE, 1L); in sftpGetRemoteFileSize() 57 curl_easy_setopt(curlHandlePtr, CURLOPT_URL, i_remoteFile); in sftpGetRemoteFileSize() 58 curl_easy_setopt(curlHandlePtr, CURLOPT_NOPROGRESS, 1); in sftpGetRemoteFileSize() 59 curl_easy_setopt(curlHandlePtr, CURLOPT_NOBODY, 1); in sftpGetRemoteFileSize() 60 curl_easy_setopt(curlHandlePtr, CURLOPT_HEADER, 1); in sftpGetRemoteFileSize() 61 curl_easy_setopt(curlHandlePtr, CURLOPT_FILETIME, 1); in sftpGetRemoteFileSize() 96 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in sftpResumeUpload() 97 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in sftpResumeUpload() 98 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc); in sftpResumeUpload() 99 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in sftpResumeUpload() [all …]
|
D | anyauthput.c | 126 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()
|
D | externalsocket.c | 113 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()
|
D | post-callback.c | 87 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()
|
D | http2-upload.c | 191 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out); in setup() 194 curl_easy_setopt(hnd, CURLOPT_READFUNCTION, read_callback); in setup() 196 curl_easy_setopt(hnd, CURLOPT_READDATA, i); in setup() 198 curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, uploadsize); in setup() 201 curl_easy_setopt(hnd, CURLOPT_URL, url); in setup() 204 curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L); in setup() 207 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in setup() 208 curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace); in setup() 209 curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, i); in setup() 212 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup() [all …]
|
D | imap-tls.c | 46 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()
|
D | pop3-tls.c | 46 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()
|
D | imap-ssl.c | 46 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()
|
D | pop3-ssl.c | 46 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()
|
D | imap-append.c | 97 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main() 98 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main() 103 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/100"); in main() 108 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); in main() 109 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); in main() 110 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main() 116 curl_easy_setopt(curl, CURLOPT_INFILESIZE, infilesize); in main()
|
D | ftp-wildcard.c | 65 curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L); in main() 68 curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_coming); in main() 71 curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded); in main() 74 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_it); in main() 77 curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data); in main() 78 curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data); in main() 84 curl_easy_setopt(handle, CURLOPT_URL, argv[1]); in main() 86 curl_easy_setopt(handle, CURLOPT_URL, "ftp://example.com/test/*"); in main()
|
D | ftpuploadfrommem.c | 90 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()
|
D | http2-pushinmemory.c | 75 curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html"); in setup() 78 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); in setup() 81 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); in setup() 82 curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); in setup() 85 curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, write_cb); in setup() 87 curl_easy_setopt(hnd, CURLOPT_WRITEDATA, &files[0]); in setup() 90 curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); in setup() 111 curl_easy_setopt(easy, CURLOPT_WRITEDATA, &files[pushindex]); in server_push_callback()
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | curl_http_request.cc | 50 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anon4f5302d80111::LibCurlProxy 52 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt() 55 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anon4f5302d80111::LibCurlProxy 57 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt() 60 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anon4f5302d80111::LibCurlProxy 62 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt() 65 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anon4f5302d80111::LibCurlProxy 68 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt() 71 CURLcode curl_easy_setopt(CURL* curl, CURLoption option, in curl_easy_setopt() function in tensorflow::__anon4f5302d80111::LibCurlProxy 74 return ::curl_easy_setopt(curl, option, param); in curl_easy_setopt() [all …]
|
/external/curl/tests/data/ |
D | test1401 | 67 * All curl_easy_setopt() options are documented at: 68 * https://curl.haxx.se/libcurl/c/curl_easy_setopt.html 83 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 84 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1401"); 85 curl_easy_setopt(hnd, CURLOPT_USERPWD, "fake:user"); 86 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_BASIC); 87 curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, slist1); 88 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "MyUA"); 89 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 90 curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L); [all …]
|
D | test1402 | 65 * All curl_easy_setopt() options are documented at: 66 * https://curl.haxx.se/libcurl/c/curl_easy_setopt.html 76 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); 77 curl_easy_setopt(hnd, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/1402"); 78 curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "foo=bar&baz=quux"); 79 curl_easy_setopt(hnd, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)16); 80 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); 81 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); 82 curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L); 83 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); [all …]
|
/external/google-breakpad/src/common/linux/ |
D | http_upload.cc | 113 CURLcode (*curl_easy_setopt)(CURL *, CURLoption, ...); in SendRequest() local 114 *(void**) (&curl_easy_setopt) = dlsym(curl_lib, "curl_easy_setopt"); in SendRequest() 115 (*curl_easy_setopt)(curl, CURLOPT_URL, url.c_str()); in SendRequest() 116 (*curl_easy_setopt)(curl, CURLOPT_USERAGENT, kUserAgent); in SendRequest() 119 (*curl_easy_setopt)(curl, CURLOPT_PROXY, proxy.c_str()); in SendRequest() 121 (*curl_easy_setopt)(curl, CURLOPT_PROXYUSERPWD, proxy_user_pwd.c_str()); in SendRequest() 124 (*curl_easy_setopt)(curl, CURLOPT_CAINFO, ca_certificate_file.c_str()); in SendRequest() 144 (*curl_easy_setopt)(curl, CURLOPT_HTTPPOST, formpost); in SendRequest() 152 (*curl_easy_setopt)(curl, CURLOPT_HTTPHEADER, headerlist); in SendRequest() 155 (*curl_easy_setopt)(curl, CURLOPT_WRITEFUNCTION, WriteCallback); in SendRequest() [all …]
|
/external/curl/tests/libtest/ |
D | lib1507.c | 67 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()
|