Home
last modified time | relevance | path

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

12345678910>>...26

/curl/docs/examples/
H A Dftpuploadresume.c84 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in upload()
86 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in upload()
97 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in upload()
100 curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-"); in upload()
107 curl_easy_setopt(curlhandle, CURLOPT_VERBOSE, 1L); in upload()
120 curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 1L); in upload()
121 curl_easy_setopt(curlhandle, CURLOPT_HEADER, 1L); in upload()
127 curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 0L); in upload()
128 curl_easy_setopt(curlhandle, CURLOPT_HEADER, 0L); in upload()
132 curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L); in upload()
[all …]
H A Dcacertinmem.c130 curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main()
131 curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main()
132 curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main()
133 curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main()
135 curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main()
137 curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr); in main()
138 curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); in main()
139 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 1L); in main()
146 curl_easy_setopt(ch, CURLOPT_CAINFO, NULL); in main()
147 curl_easy_setopt(ch, CURLOPT_CAPATH, NULL); in main()
[all …]
H A Dsimplessl.c83 curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site"); in main()
84 curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile); in main()
93 if(curl_easy_setopt(curl, CURLOPT_SSLENGINE, pEngine) != CURLE_OK) { in main()
98 if(curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 1L) != CURLE_OK) { in main()
108 curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, "PEM"); in main()
111 curl_easy_setopt(curl, CURLOPT_SSLCERT, pCertFile); in main()
116 curl_easy_setopt(curl, CURLOPT_KEYPASSWD, pPassphrase); in main()
120 curl_easy_setopt(curl, CURLOPT_SSLKEYTYPE, pKeyType); in main()
123 curl_easy_setopt(curl, CURLOPT_SSLKEY, pKeyName); in main()
126 curl_easy_setopt(curl, CURLOPT_CAINFO, pCACertFile); in main()
[all …]
H A Dusercertinmem.c184 curl_easy_setopt(ch, CURLOPT_VERBOSE, 0L); in main()
185 curl_easy_setopt(ch, CURLOPT_HEADER, 0L); in main()
186 curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 1L); in main()
187 curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1L); in main()
188 curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, writefunction); in main()
189 curl_easy_setopt(ch, CURLOPT_WRITEDATA, stdout); in main()
191 curl_easy_setopt(ch, CURLOPT_HEADERDATA, stderr); in main()
192 curl_easy_setopt(ch, CURLOPT_SSLCERTTYPE, "PEM"); in main()
197 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYPEER, 0L); in main()
198 curl_easy_setopt(ch, CURLOPT_SSL_VERIFYHOST, 0L); in main()
[all …]
H A Dsmtp-tls.c99 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
100 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
106 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mainserver.example.net:587"); in main()
113 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
126 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
135 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM_MAIL); in main()
142 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
147 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); in main()
148 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); in main()
149 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
[all …]
H A Dsmtp-ssl.c99 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
100 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
104 curl_easy_setopt(curl, CURLOPT_URL, "smtps://mainserver.example.net"); in main()
115 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
123 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
133 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM_MAIL); in main()
140 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
145 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); in main()
146 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); in main()
147 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
[all …]
H A Dcrawler.c84 curl_easy_setopt(handle, CURLOPT_URL, url); in make_handle()
91 curl_easy_setopt(handle, CURLOPT_WRITEDATA, mem); in make_handle()
92 curl_easy_setopt(handle, CURLOPT_PRIVATE, mem); in make_handle()
96 curl_easy_setopt(handle, CURLOPT_TIMEOUT, 5L); in make_handle()
97 curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L); in make_handle()
100 curl_easy_setopt(handle, CURLOPT_AUTOREFERER, 1L); in make_handle()
101 curl_easy_setopt(handle, CURLOPT_MAXREDIRS, 10L); in make_handle()
103 curl_easy_setopt(handle, CURLOPT_TIMEOUT_MS, 20000L); in make_handle()
107 curl_easy_setopt(handle, CURLOPT_MAXFILESIZE_LARGE, in make_handle()
109 curl_easy_setopt(handle, CURLOPT_COOKIEFILE, ""); in make_handle()
[all …]
H A Dsmtp-authzid.c106 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com:587"); in main()
109 curl_easy_setopt(curl, CURLOPT_USERNAME, "kurt"); in main()
110 curl_easy_setopt(curl, CURLOPT_PASSWORD, "xipj3plmq"); in main()
113 curl_easy_setopt(curl, CURLOPT_SASL_AUTHZID, "ursel"); in main()
116 curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, "AUTH=PLAIN"); in main()
125 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM_ADDR); in main()
130 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
135 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); in main()
136 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); in main()
137 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
H A Dsftpuploadresume.c56 curl_easy_setopt(curlHandlePtr, CURLOPT_VERBOSE, 1L); in sftpGetRemoteFileSize()
58 curl_easy_setopt(curlHandlePtr, CURLOPT_URL, i_remoteFile); in sftpGetRemoteFileSize()
59 curl_easy_setopt(curlHandlePtr, CURLOPT_NOPROGRESS, 1); in sftpGetRemoteFileSize()
60 curl_easy_setopt(curlHandlePtr, CURLOPT_NOBODY, 1); in sftpGetRemoteFileSize()
61 curl_easy_setopt(curlHandlePtr, CURLOPT_HEADER, 1); in sftpGetRemoteFileSize()
62 curl_easy_setopt(curlHandlePtr, CURLOPT_FILETIME, 1); in sftpGetRemoteFileSize()
97 curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L); in sftpResumeUpload()
98 curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath); in sftpResumeUpload()
99 curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc); in sftpResumeUpload()
100 curl_easy_setopt(curlhandle, CURLOPT_READDATA, f); in sftpResumeUpload()
[all …]
H A Dimap-tls.c48 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
49 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
52 curl_easy_setopt(curl, CURLOPT_URL, in main()
60 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
74 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
79 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
H A Dpop3-tls.c48 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
49 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
52 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); in main()
59 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
73 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
78 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
H A Dimap-ssl.c48 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
49 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
53 curl_easy_setopt(curl, CURLOPT_URL, in main()
65 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
73 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
79 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
H A Dpop3-ssl.c48 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
49 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
53 curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1"); in main()
64 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
72 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
78 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
H A Danyauthput.c110 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); in main()
113 curl_easy_setopt(curl, CURLOPT_READDATA, (void *) fp); in main()
116 curl_easy_setopt(curl, CURLOPT_SEEKFUNCTION, my_seek); in main()
119 curl_easy_setopt(curl, CURLOPT_SEEKDATA, (void *) fp); in main()
122 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); in main()
126 curl_easy_setopt(curl, CURLOPT_URL, url); in main()
130 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, in main()
136 curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY); in main()
139 curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password"); in main()
H A Dkeepalive.c39 curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L); in main()
42 curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 120L); in main()
45 curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 60L); in main()
48 curl_easy_setopt(curl, CURLOPT_TCP_KEEPCNT, 3L); in main()
50 curl_easy_setopt(curl, CURLOPT_URL, "https://curl.se/"); in main()
H A Dimap-authzid.c47 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
48 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
51 curl_easy_setopt(curl, CURLOPT_SASL_AUTHZID, "shared-mailbox"); in main()
54 curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, "AUTH=PLAIN"); in main()
57 curl_easy_setopt(curl, CURLOPT_URL, in main()
H A Dpop3-authzid.c47 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
48 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
51 curl_easy_setopt(curl, CURLOPT_SASL_AUTHZID, "shared-mailbox"); in main()
54 curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, "AUTH=PLAIN"); in main()
57 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); in main()
H A Dpop3-dele.c47 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
48 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
51 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1"); in main()
54 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELE"); in main()
57 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); in main()
H A Dpop3-noop.c47 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
48 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
51 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com"); in main()
54 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "NOOP"); in main()
57 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); in main()
H A Dpop3-stat.c47 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
48 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
51 curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com"); in main()
54 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "STAT"); in main()
57 curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); in main()
H A Dpost-callback.c89 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/index.cgi"); in main()
92 curl_easy_setopt(curl, CURLOPT_POST, 1L); in main()
95 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); in main()
98 curl_easy_setopt(curl, CURLOPT_READDATA, &wt); in main()
101 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
115 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); in main()
122 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)wt.sizeleft); in main()
138 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); in main()
/curl/tests/libtest/
H A Dlib1568.c36 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test()
37 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in test()
38 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L); in test()
39 curl_easy_setopt(hnd, CURLOPT_USERPWD, "testuser:testpass"); in test()
40 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "lib1568"); in test()
41 curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST); in test()
42 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); in test()
43 curl_easy_setopt(hnd, CURLOPT_PORT, strtol(libtest_arg2, NULL, 10)); in test()
H A Dlib1662.c64 curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L); in test()
65 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test()
66 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L); in test()
73 curl_easy_setopt(hnd, CURLOPT_MIMEPOST, mime1); in test()
74 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/2000"); in test()
75 curl_easy_setopt(hnd, CURLOPT_FOLLOWLOCATION, 1L); in test()
76 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); in test()
77 curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, in test()
79 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in test()
80 curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); in test()
[all …]
H A Dlib2309.c48 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, cb_ignore); in test()
49 curl_easy_setopt(curl, CURLOPT_URL, URL); in test()
50 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
51 curl_easy_setopt(curl, CURLOPT_PROXY, libtest_arg3); in test()
52 curl_easy_setopt(curl, CURLOPT_NETRC, (long)CURL_NETRC_REQUIRED); in test()
53 curl_easy_setopt(curl, CURLOPT_NETRC_FILE, libtest_arg2); in test()
H A Dlib1523.c53 curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_LIMIT, limit); in run()
54 curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_TIME, time); in run()
65 curl_easy_setopt(hnd, CURLOPT_URL, URL); in test()
66 curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, write_cb); in test()
67 curl_easy_setopt(hnd, CURLOPT_ERRORBUFFER, buffer); in test()
68 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 0L); in test()
69 curl_easy_setopt(hnd, CURLOPT_XFERINFOFUNCTION, dload_progress_cb); in test()

Completed in 31 milliseconds

12345678910>>...26