HomeSort by relevance Sort by last modified time
    Searched defs:curl (Results 101 - 125 of 158) sorted by null

1 2 3 45 6 7

  /external/curl/docs/examples/
imap-append.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
30 #include <curl/curl.h>
86 CURL *curl; local
94 curl = curl_easy_init();
95 if(curl) {
97 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
98 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
103 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/100")
    [all...]
multi-post.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
31 #include <curl/curl.h>
35 CURL *curl; local
67 curl = curl_easy_init();
73 if(curl && multi_handle) {
76 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/upload.cgi");
77 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
79 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist)
    [all...]
postinmemory.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
58 CURL *curl; local
67 curl = curl_easy_init();
68 if(curl) {
70 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.org/");
73 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
76 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk)
    [all...]
progressfunc.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
28 #include <curl/curl.h>
35 CURL *curl; member in struct:myprogress
44 CURL *curl = myp->curl; local
47 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &curtime);
82 CURL *curl local
    [all...]
sendrecv.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
61 CURL *curl; local
78 curl = curl_easy_init();
79 if(curl) {
80 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
82 curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L);
83 res = curl_easy_perform(curl);
    [all...]
simplessl.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
28 #include <curl/curl.h>
50 CURL *curl; local
78 curl = curl_easy_init();
79 if(curl) {
81 curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
82 curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile);
87 if(curl_easy_setopt(curl, CURLOPT_SSLENGINE, pEngine) != CURLE_OK)
    [all...]
smtp-mail.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
30 #include <curl/curl.h>
87 CURL *curl; local
94 curl = curl_easy_init();
95 if(curl) {
97 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
106 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
113 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients)
    [all...]
smtp-ssl.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
30 #include <curl/curl.h>
88 CURL *curl; local
95 curl = curl_easy_init();
96 if(curl) {
98 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
99 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
103 curl_easy_setopt(curl, CURLOPT_URL, "smtps://mainserver.example.net")
    [all...]
smtp-tls.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
30 #include <curl/curl.h>
88 CURL *curl; local
95 curl = curl_easy_init();
96 if(curl) {
98 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
99 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
105 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mainserver.example.net:587")
    [all...]
threaded-ssl.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
41 #include <curl/curl.h>
120 CURL *curl; local
122 curl = curl_easy_init();
123 curl_easy_setopt(curl, CURLOPT_URL, url);
126 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
127 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
128 curl_easy_perform(curl); /* ignores error *
    [all...]
  /external/curl/tests/libtest/
lib1510.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
35 CURL *curl = NULL; local
63 easy_init(curl);
66 easy_setopt(curl, CURLOPT_VERBOSE, 1L);
68 easy_setopt(curl, CURLOPT_HEADER, 1L);
70 easy_setopt(curl, CURLOPT_RESOLVE, slist);
72 easy_setopt(curl, CURLOPT_MAXCONNECTS, 3L);
81 easy_setopt(curl, CURLOPT_URL, target_url);
83 res = curl_easy_perform(curl);
    [all...]
lib1520.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
75 CURL *curl; local
84 if((curl = curl_easy_init()) == NULL) {
95 test_setopt(curl, CURLOPT_URL, URL);
96 test_setopt(curl, CURLOPT_UPLOAD, 1L);
97 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
98 test_setopt(curl, CURLOPT_READDATA, &upload_ctx);
99 test_setopt(curl, CURLOPT_MAIL_FROM, FROM);
100 test_setopt(curl, CURLOPT_MAIL_RCPT, rcpt_list)
    [all...]
lib1533.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
35 CURL *easy_handle;
42 static void reset_data(struct cb_data *data, CURL *curl)
44 data->easy_handle = curl;
99 static int perform_and_check_connections(CURL *curl, const char *description,
105 res = curl_easy_perform(curl);
111 res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &connections);
131 CURL *curl = NULL local
    [all...]
lib500.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
48 static void setupcallbacks(CURL *curl)
50 curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, tst_opensocket);
51 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, tst_closesocket);
63 CURL *curl; local
71 if((curl = curl_easy_init()) == NULL) {
77 test_setopt(curl, CURLOPT_URL, URL);
78 test_setopt(curl, CURLOPT_HEADER, 1L)
    [all...]
lib505.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
39 CURL *curl; local
89 /* get a curl handle */
90 curl = curl_easy_init();
91 if(!curl) {
103 curl_easy_cleanup(curl);
112 curl_easy_cleanup(curl);
120 test_setopt(curl, CURLOPT_UPLOAD, 1L);
123 test_setopt(curl, CURLOPT_VERBOSE, 1L)
    [all...]
lib509.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
108 CURL *curl; local
125 if((curl = curl_easy_init()) == NULL) {
131 test_setopt(curl, CURLOPT_USERAGENT, "test509"); /* uses strdup() */
134 str = curl_easy_escape(curl, (char *)a, asize); /* uses realloc() */
141 curl_easy_cleanup(curl);
lib510.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
60 CURL *curl; local
71 if((curl = curl_easy_init()) == NULL) {
80 curl_easy_cleanup(curl);
86 test_setopt(curl, CURLOPT_URL, URL);
89 test_setopt(curl, CURLOPT_POST, 1L);
93 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
97 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
100 test_setopt(curl, CURLOPT_READDATA, &pooh)
    [all...]
lib525.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
35 CURL *curl = NULL; local
83 easy_init(curl);
86 easy_setopt(curl, CURLOPT_UPLOAD, 1L);
89 easy_setopt(curl, CURLOPT_URL, URL);
92 easy_setopt(curl, CURLOPT_VERBOSE, 1L);
95 easy_setopt(curl, CURLOPT_FTPPORT, "-");
98 easy_setopt(curl, CURLOPT_READDATA, hd_src);
109 easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t)file_info.st_size)
    [all...]
lib526.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
56 CURL *curl[NUM_HANDLES]; local
63 curl[i] = NULL;
71 easy_init(curl[i]);
73 easy_setopt(curl[i], CURLOPT_URL, URL);
75 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L);
80 multi_add_handle(m, curl[current]);
101 curl_easy_cleanup(curl[current]);
102 curl[current] = NULL
    [all...]
lib530.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
35 CURL *curl[NUM_HANDLES]; local
43 curl[i] = NULL;
54 easy_init(curl[i]);
58 easy_setopt(curl[i], CURLOPT_URL, target_url);
60 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L);
62 easy_setopt(curl[i], CURLOPT_HEADER, 1L);
68 multi_add_handle(m, curl[handles_added++]);
93 multi_add_handle(m, curl[handles_added++])
    [all...]
lib533.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
37 CURL *curl = NULL; local
46 easy_init(curl);
48 easy_setopt(curl, CURLOPT_URL, URL);
49 easy_setopt(curl, CURLOPT_VERBOSE, 1L);
50 easy_setopt(curl, CURLOPT_FAILONERROR, 1L);
54 multi_add_handle(m, curl);
74 curl_multi_remove_handle(m, curl);
78 curl_easy_reset(curl);
    [all...]
lib553.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
60 CURL *curl; local
70 if((curl = curl_easy_init()) == NULL) {
91 test_setopt(curl, CURLOPT_URL, URL);
92 test_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
93 test_setopt(curl, CURLOPT_POST, 1L);
96 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
98 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)POSTLEN);
99 test_setopt(curl, CURLOPT_VERBOSE, 1L)
    [all...]
lib554.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
69 CURL *curl; local
165 if((curl = curl_easy_init()) == NULL) {
173 test_setopt(curl, CURLOPT_URL, URL);
176 test_setopt(curl, CURLOPT_POST, 1L);
179 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft);
182 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
185 test_setopt(curl, CURLOPT_HTTPPOST, formpost);
188 test_setopt(curl, CURLOPT_VERBOSE, 1L)
    [all...]
lib555.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
62 static curlioerr ioctlcallback(CURL *handle,
79 CURL *curl = NULL; local
88 easy_init(curl);
90 easy_setopt(curl, CURLOPT_URL, URL);
91 easy_setopt(curl, CURLOPT_VERBOSE, 1L);
92 easy_setopt(curl, CURLOPT_HEADER, 1L);
95 easy_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctlcallback);
96 easy_setopt(curl, CURLOPT_IOCTLDATA, &counter)
    [all...]
lib564.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
35 CURL *curl = NULL; local
43 easy_init(curl);
45 easy_setopt(curl, CURLOPT_URL, URL);
46 easy_setopt(curl, CURLOPT_VERBOSE, 1L);
47 easy_setopt(curl, CURLOPT_PROXY, libtest_arg2);
48 easy_setopt(curl, CURLOPT_PROXYTYPE, (long)CURLPROXY_SOCKS4);
52 multi_add_handle(m, curl);
88 curl_easy_cleanup(curl);
    [all...]

Completed in 156 milliseconds

1 2 3 45 6 7