Home
last modified time | relevance | path

Searched refs:curl (Results 1 - 25 of 548) sorted by relevance

12345678910>>...22

/third_party/curl/tests/libtest/
H A Dlib661.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
30 CURL *curl = NULL; in test() local
39 curl = curl_easy_init(); in test()
40 if(!curl) { in test()
49 test_setopt(curl, CURLOPT_URL, newURL); in test()
50 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
51 test_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 1L); in test()
52 test_setopt(curl, CURLOPT_FTP_FILEMETHOD, (long) CURLFTPMETHOD_SINGLECWD); in test()
53 res = curl_easy_perform(curl); in test()
[all...]
H A Dlib572.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
47 CURL *curl; in test() local
60 curl = curl_easy_init(); in test()
61 if(!curl) { in test()
68 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
69 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
70 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
72 test_setopt(curl, CURLOPT_URL, URL); in test()
80 test_setopt(curl, CURLOPT_RTSP_STREAM_UR in test()
[all...]
H A Dlib568.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
47 CURL *curl; in test() local
60 curl = curl_easy_init(); in test()
61 if(!curl) { in test()
67 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
68 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
70 test_setopt(curl, CURLOPT_URL, URL); in test()
77 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
91 test_setopt(curl, CURLOPT_RTSP_REQUES in test()
[all...]
H A Dlib1533.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
44 static void reset_data(struct cb_data *data, CURL *curl) in reset_data() argument
46 data->easy_handle = curl; in reset_data()
101 static int perform_and_check_connections(CURL *curl, const char *description, in perform_and_check_connections() argument
107 res = curl_easy_perform(curl); in perform_and_check_connections()
113 res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &connections); in perform_and_check_connections()
133 CURL *curl = NULL; in test() local
141 curl = curl_easy_init(); in test()
142 if(!curl) { in test()
[all...]
H A Dlibauthretry.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
32 static CURLcode send_request(CURL *curl, const char *url, int seq, in send_request() argument
46 test_setopt(curl, CURLOPT_URL, full_url); in send_request()
47 test_setopt(curl, CURLOPT_VERBOSE, 1L); in send_request()
48 test_setopt(curl, CURLOPT_HEADER, 1L); in send_request()
49 test_setopt(curl, CURLOPT_HTTPGET, 1L); in send_request()
50 test_setopt(curl, CURLOPT_USERPWD, userpwd); in send_request()
51 test_setopt(curl, CURLOPT_HTTPAUTH, auth_scheme); in send_request()
53 res = curl_easy_perform(curl); in send_request()
60 send_wrong_password(CURL *curl, const char *url, int seq, long auth_scheme) send_wrong_password() argument
66 send_right_password(CURL *curl, const char *url, int seq, long auth_scheme) send_right_password() argument
88 CURL *curl = NULL; test() local
[all...]
H A Dlib2304.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
29 static int ping(CURL *curl, const char *send_payload) in ping() argument
33 curl_ws_send(curl, send_payload, strlen(send_payload), &sent, 0, in ping()
41 static int recv_pong(CURL *curl, const char *expected_payload) in recv_pong() argument
46 CURLcode result = curl_ws_recv(curl, buffer, sizeof(buffer), &rlen, &meta); in recv_pong()
70 static int recv_any(CURL *curl) in recv_any() argument
75 CURLcode result = curl_ws_recv(curl, buffer, sizeof(buffer), &rlen, &meta); in recv_any()
85 static void websocket_close(CURL *curl) in websocket_close() argument
89 curl_ws_send(curl, "", in websocket_close()
94 websocket(CURL *curl) websocket() argument
115 CURL *curl; test() local
[all...]
H A Dlib2301.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
30 static int ping(CURL *curl, const char *send_payload)
34 curl_ws_send(curl, send_payload, strlen(send_payload), &sent, CURLWS_PING);
41 static int recv_pong(CURL *curl, const char *expected_payload)
47 curl_ws_recv(curl, buffer, sizeof(buffer), &rlen, &rflags);
69 static void websocket_close(CURL *curl)
73 curl_ws_send(curl, "", 0, &sent, CURLWS_CLOSE);
78 static void websocket(CURL *curl)
83 if(ping(curl, "fooba
124 CURL *curl; test() local
[all...]
H A Dlib598.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
31 CURL *curl; in test() local
38 curl = curl_easy_init(); in test()
39 if(!curl) { in test()
45 test_setopt(curl, CURLOPT_URL, URL); in test()
46 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
47 test_setopt(curl, CURLOPT_REFERER, "http://example.com/the-moo"); in test()
48 test_setopt(curl, CURLOPT_USERAGENT, "the-moo agent next generation"); in test()
49 test_setopt(curl, CURLOPT_COOKI in test()
[all...]
H A Dlib506.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
135 CURL *curl; in fire() local
137 curl = curl_easy_init(); in fire()
138 if(!curl) { in fire()
144 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in fire()
145 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); in fire()
146 curl_easy_setopt(curl, CURLOPT_URL, tdata->url); in fire()
147 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); in fire()
149 curl_easy_setopt(curl, CURLOPT_SHAR in fire()
182 CURL *curl; test() local
[all...]
H A Dlib1526.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
38 size_t amount = nmemb * size; /* Total bytes curl wants */ in read_callback()
49 CURL *curl = NULL; in test() local
59 curl = curl_easy_init(); in test()
60 if(!curl) { in test()
77 test_setopt(curl, CURLOPT_URL, URL); in test()
78 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
79 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
80 test_setopt(curl, CURLOPT_PROXYHEADE in test()
[all...]
H A Dlib1525.c13 * are also available at https://curl.se/docs/copyright.html.
22 * SPDX-License-Identifier: curl
39 size_t amount = nmemb * size; /* Total bytes curl wants */ in read_callback()
51 CURL *curl = NULL; in test() local
61 curl = curl_easy_init(); in test()
62 if(!curl) { in test()
74 test_setopt(curl, CURLOPT_URL, URL); in test()
75 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
76 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
77 test_setopt(curl, CURLOPT_PROXYHEADE in test()
[all...]
H A Dlib569.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
39 CURL *curl; in test() local
57 curl = curl_easy_init(); in test()
58 if(!curl) { in test()
65 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
66 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
67 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
69 test_setopt(curl, CURLOPT_URL, URL); in test()
71 test_setopt(curl, CURLOPT_RTSP_REQUES in test()
[all...]
H A Dlib570.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
36 CURL *curl; in test() local
45 curl = curl_easy_init(); in test()
46 if(!curl) { in test()
52 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
53 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
54 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
56 test_setopt(curl, CURLOPT_URL, URL); in test()
58 test_setopt(curl, CURLOPT_RTSP_REQUES in test()
[all...]
H A Dlib1527.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
38 size_t amount = nmemb * size; /* Total bytes curl wants */ in read_callback()
50 CURL *curl = NULL; in test() local
60 curl = curl_easy_init(); in test()
61 if(!curl) { in test()
77 test_setopt(curl, CURLOPT_URL, URL); in test()
78 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
79 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
80 test_setopt(curl, CURLOPT_POS in test()
[all...]
H A Dlib547.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
78 CURL *curl; in test() local
88 curl = curl_easy_init(); in test()
89 if(!curl) { in test()
95 test_setopt(curl, CURLOPT_URL, URL); in test()
96 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
97 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
100 test_setopt(curl, CURLOPT_POSTFIELDS, UPLOADTHIS); in test()
104 test_setopt(curl, CURLOPT_IOCTLFUNCTIO in test()
[all...]
H A Dlib526.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
58 CURL *curl[NUM_HANDLES]; in test() local
65 curl[i] = NULL; in test()
73 easy_init(curl[i]); in test()
75 easy_setopt(curl[i], CURLOPT_URL, URL); in test()
77 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L); in test()
82 multi_add_handle(m, curl[current]); in test()
103 curl_easy_cleanup(curl[current]); in test()
104 curl[curren in test()
[all...]
H A Dlib571.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
106 CURL *curl; in test() local
122 curl = curl_easy_init(); in test()
123 if(!curl) { in test()
129 test_setopt(curl, CURLOPT_URL, URL); in test()
136 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
140 test_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write); in test()
141 test_setopt(curl, CURLOPT_TIMEOUT, 30L); in test()
142 test_setopt(curl, CURLOPT_VERBOS in test()
[all...]
/third_party/curl/docs/examples/
H A Dwebsocket.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
31 #include <curl/curl.h>
33 static int ping(CURL *curl, const char *send_payload) in ping() argument
37 curl_ws_send(curl, send_payload, strlen(send_payload), &sent, 0, in ping()
42 static int recv_pong(CURL *curl, const char *expected_payload) in recv_pong() argument
47 CURLcode result = curl_ws_recv(curl, buffer, sizeof(buffer), &rlen, &meta); in recv_pong()
71 static int recv_any(CURL *curl) in recv_any() argument
76 CURLcode result = curl_ws_recv(curl, buffe in recv_any()
84 websocket_close(CURL *curl) websocket_close() argument
90 websocket(CURL *curl) websocket() argument
107 CURL *curl; main() local
[all...]
H A Dsimplessl.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
30 #include <curl/curl.h>
52 CURL *curl; in main() local
80 curl = curl_easy_init(); in main()
81 if(curl) { in main()
83 curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site"); in main()
84 curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile); in main()
89 if(curl_easy_setopt(curl, CURLOPT_SSLENGIN in main()
[all...]
H A Dcookie_interface.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
35 #include <curl/curl.h>
38 print_cookies(CURL *curl) in print_cookies() argument
45 printf("Cookies, curl knows:\n"); in print_cookies()
46 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies()
68 CURL *curl; in main() local
72 curl = curl_easy_init(); in main()
73 if(curl) { in main()
[all...]
H A Dprogressfunc.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
30 #include <curl/curl.h>
37 CURL *curl; member
46 CURL *curl = myp->curl; in xferinfo() local
49 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME_T, &curtime); in xferinfo()
72 CURL *curl; in main() local
76 curl in main()
[all...]
H A Dsmtp-tls.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
32 #include <curl/curl.h>
91 CURL *curl; in main() local
96 curl = curl_easy_init(); in main()
97 if(curl) { in main()
99 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_UR in main()
[all...]
H A Dsmtp-ssl.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
32 #include <curl/curl.h>
91 CURL *curl; in main() local
96 curl = curl_easy_init(); in main()
97 if(curl) { in main()
99 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_UR in main()
[all...]
/third_party/curl/src/
H A Dtool_operate.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
101 "More details here: https://curl.se/docs/sslcerts.html\n\n" \
102 "curl failed to verify the legitimacy of the server and therefore " \
338 my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize); in pre_transfer()
378 CURL *curl = per->curl; in post_per_transfer() local
382 if(!curl || !config) in post_per_transfer()
402 fprintf(tool_stderr, "curl: (%d) %s\n", result, in post_per_transfer()
410 curl_easy_getinfo(curl, CURLINFO_RESPONSE_COD in post_per_transfer()
874 CURL *curl; single_transfer() local
[all...]
/third_party/curl/tests/http/clients/
H A Dws-pingpong.c12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
29 /* curl stuff */
31 #include <curl/curl.h>
43 static CURLcode ping(CURL *curl, const char *send_payload) in ping() argument
47 curl_ws_send(curl, send_payload, strlen(send_payload), &sent, 0, in ping()
55 static CURLcode recv_pong(CURL *curl, const char *expected_payload) in recv_pong() argument
60 CURLcode result = curl_ws_recv(curl, buffer, sizeof(buffer), &rlen, &meta); in recv_pong()
84 static void websocket_close(CURL *curl) in websocket_close() argument
93 pingpong(CURL *curl, const char *payload) pingpong() argument
120 CURL *curl; main() local
[all...]

Completed in 8 milliseconds

12345678910>>...22