Home
last modified time | relevance | path

Searched refs:curl (Results 1 – 25 of 2303) sorted by relevance

12345678910>>...93

/third_party/curl/tests/libtest/
Dlib661.c30 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()
59 test_setopt(curl, CURLOPT_URL, newURL); in test()
60 res = curl_easy_perform(curl); in test()
[all …]
Dlib572.c47 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_URI, stream_uri); in test()
84 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "Planes/Trains/Automobiles"); in test()
85 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP); in test()
[all …]
Dlib568.c47 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_REQUEST, CURL_RTSPREQ_ANNOUNCE); in test()
93 test_setopt(curl, CURLOPT_READDATA, sdpf); in test()
94 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
[all …]
Dlib506.c135 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_SHARE, tdata->share); in fire()
152 code = curl_easy_perform(curl); in fire()
160 curl_easy_cleanup(curl); in fire()
[all …]
Dlib2304.c29 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, "", 0, &sent, 0, CURLWS_CLOSE); in websocket_close()
94 static void websocket(CURL *curl) in websocket() argument
99 recv_any(curl); in websocket()
[all …]
Dlib1533.c44 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()
148 reset_data(&data, curl); in test()
150 test_setopt(curl, CURLOPT_URL, URL); in test()
[all …]
Dlibauthretry.c32 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 static CURLcode send_wrong_password(CURL *curl, const char *url, int seq, in send_wrong_password() argument
63 return send_request(curl, url, seq, auth_scheme, "testuser:wrongpass"); in send_wrong_password()
[all …]
Dlib2301.c30 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, "foobar"))
85 if(recv_pong(curl, "foobar"))
89 websocket_close(curl);
[all …]
Dlib1525.c51 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_PROXYHEADER, hhl); in test()
78 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED); in test()
79 test_setopt(curl, CURLOPT_POST, 0L); in test()
80 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
[all …]
Dlib1526.c49 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_PROXYHEADER, phl); in test()
81 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE); in test()
82 test_setopt(curl, CURLOPT_POST, 0L); in test()
83 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
[all …]
Dlib500.c50 static void setupcallbacks(CURL *curl) in setupcallbacks() argument
52 curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, tst_opensocket); in setupcallbacks()
53 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, tst_closesocket); in setupcallbacks()
65 CURL *curl; in test() local
73 curl = curl_easy_init(); in test()
74 if(!curl) { in test()
80 test_setopt(curl, CURLOPT_URL, URL); in test()
81 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
85 test_setopt(curl, CURLOPT_DEBUGDATA, &libtest_debug_config); in test()
86 test_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); in test()
[all …]
Dlib570.c36 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_REQUEST, CURL_RTSPREQ_OPTIONS); in test()
65 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
69 res = curl_easy_perform(curl); in test()
[all …]
Dlib598.c31 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_COOKIE, "name=moo"); in test()
50 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
52 res = curl_easy_perform(curl); in test()
[all …]
Dlib571.c106 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_VERBOSE, 1L); in test()
143 test_setopt(curl, CURLOPT_WRITEDATA, protofile); in test()
145 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "RTP/AVP/TCP;interleaved=0-1"); in test()
[all …]
Dlib569.c39 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_REQUEST, CURL_RTSPREQ_SETUP); in test()
72 res = curl_easy_perform(curl); in test()
87 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
[all …]
Dlib547.c78 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_IOCTLFUNCTION, ioctlcallback); in test()
105 test_setopt(curl, CURLOPT_IOCTLDATA, &counter); in test()
107 test_setopt(curl, CURLOPT_READFUNCTION, readcallback); in test()
[all …]
/third_party/curl/
DRELEASE-NOTES1 curl and libcurl 8.6.0
3 Public curl releases: 254
41 o cmake: rework options to enable curl and libcurl docs [161]
42 o cmake: when USE_MANUAL=YES, build the curl.1 man page [113]
53 o curl.h: CURLOPT_DNS_SERVERS is only available with c-ares [131]
54 o curl: show ipfs and ipns as supported "protocols" [15]
65 o docs: install curl.1 with cmake [166]
179 o see docs/KNOWN_BUGS (https://curl.se/docs/knownbugs.html)
185 See https://curl.se/dev/deprecate.html for details
209 [1] = https://curl.se/bug/?i=12474
[all …]
/third_party/curl/src/
Dtool_operate.c338 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()
410 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &code); in post_per_transfer()
421 rc = fwrite_xattr(curl, per->this_url, fileno(outs->stream)); in post_per_transfer()
434 curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &cond_unmet); in post_per_transfer()
480 curl_easy_getinfo(curl, CURLINFO_OS_ERRNO, &oserrno); in post_per_transfer()
491 curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in post_per_transfer()
495 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in post_per_transfer()
522 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in post_per_transfer()
[all …]
/third_party/curl/packages/vms/
Dstage_curl_install.com7 $! [usr.bin]gnv$curl.exe
8 $! [usr.bin]curl-config.
10 $! [usr.bin]curl. hard link for [usr.bin]gnv$curl.exe
11 $! [usr.include.curl]curl.h
12 $! [usr.include.curl]curlver.h
13 $! [usr.include.curl]easy.h
14 $! [usr.include.curl]mprintf.h
15 $! [usr.include.curl]multi.h
16 $! [usr.include.curl]stdcheaders.h
17 $! [usr.include.curl]typecheck-gcc.h
[all …]
/third_party/curl/tests/data/
Dtest3112 # The cookies set come in two versions. This is because when curl is built
28 Set-Cookie:ismatch=this ; domain=test31.curl; path=/silly/
29 Set-Cookie: overwrite=this ; domain=test31.curl; path=/overwrite/
30 Set-Cookie: overwrite=this2 ; domain=test31.curl; path=/overwrite
31 Set-Cookie: sec1value=secure1 ; domain=test31.curl; path=/secure1/ ; secure
32 Set-Cookie: sec2value=secure2 ; domain=test31.curl; path=/secure2/ ; secure=
33 Set-Cookie: sec3value=secure3 ; domain=test31.curl; path=/secure3/ ; secure=
34 Set-Cookie: sec4value=secure4 ; secure=; domain=test31.curl; path=/secure4/ ;
35 Set-Cookie: sec5value=secure5 ; secure; domain=test31.curl; path=/secure5/ ;
36 Set-Cookie: sec6value=secure6 ; secure ; domain=test31.curl; path=/secure6/ ;
[all …]
/third_party/openssl/apps/
Dtsget.in44 my $curl = WWW::Curl::Easy::new();
47 $curl->setopt(CURLOPT_VERBOSE, 1) if $options{d};
48 $curl->setopt(CURLOPT_FAILONERROR, 1);
49 $curl->setopt(CURLOPT_USERAGENT,
53 $curl->setopt(CURLOPT_UPLOAD, 1);
54 $curl->setopt(CURLOPT_CUSTOMREQUEST, "POST");
55 $curl->setopt(CURLOPT_HTTPHEADER,
58 $curl->setopt(CURLOPT_READFUNCTION, \&read_body);
59 $curl->setopt(CURLOPT_HEADERFUNCTION, sub { return length($_[0]); });
62 $curl->setopt(CURLOPT_WRITEFUNCTION, \&write_body);
[all …]
/third_party/node/deps/openssl/openssl/apps/
Dtsget.in44 my $curl = WWW::Curl::Easy::new();
47 $curl->setopt(CURLOPT_VERBOSE, 1) if $options{d};
48 $curl->setopt(CURLOPT_FAILONERROR, 1);
49 $curl->setopt(CURLOPT_USERAGENT,
53 $curl->setopt(CURLOPT_UPLOAD, 1);
54 $curl->setopt(CURLOPT_CUSTOMREQUEST, "POST");
55 $curl->setopt(CURLOPT_HTTPHEADER,
58 $curl->setopt(CURLOPT_READFUNCTION, \&read_body);
59 $curl->setopt(CURLOPT_HEADERFUNCTION, sub { return length($_[0]); });
62 $curl->setopt(CURLOPT_WRITEFUNCTION, \&write_body);
[all …]
/third_party/curl/docs/examples/
Dwebsocket.c33 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, buffer, sizeof(buffer), &rlen, &meta); in recv_any()
84 static void websocket_close(CURL *curl) in websocket_close() argument
87 (void)curl_ws_send(curl, "", 0, &sent, 0, CURLWS_CLOSE); in websocket_close()
90 static void websocket(CURL *curl) in websocket() argument
94 recv_any(curl); in websocket()
[all …]
/third_party/curl/docs/
DKNOWN_BUGS38 5.2 curl-config --libs contains private details
41 5.6 cygwin: make install installs curl-config.1 twice
56 6.10 curl never completes Negotiate over HTTP
121 When curl is built to use hyper for HTTP, it is unnecessary slow.
123 https://github.com/curl/curl/issues/11203
130 https://curl.se/mail/archive-2008-02/0043.html
136 See https://github.com/curl/curl/issues/5403
142 https://github.com/curl/curl/issues/1308
150 See https://github.com/curl/curl/issues/1411
154 See https://github.com/curl/curl/issues/3145
[all …]
/third_party/curl/tests/http/clients/
Dws-pingpong.c43 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
88 curl_ws_send(curl, "", 0, &sent, 0, CURLWS_CLOSE); in websocket_close()
93 static CURLcode pingpong(CURL *curl, const char *payload) in pingpong() argument
98 res = ping(curl, payload); in pingpong()
103 res = recv_pong(curl, payload); in pingpong()
108 websocket_close(curl); in pingpong()
[all …]

12345678910>>...93