Home
last modified time | relevance | path

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

12345678910>>...73

/external/curl/tests/libtest/
Dlib661.c28 CURL *curl = NULL; in test() local
37 curl = curl_easy_init(); in test()
38 if(!curl) { in test()
47 test_setopt(curl, CURLOPT_URL, newURL); in test()
48 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
49 test_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 1L); in test()
50 test_setopt(curl, CURLOPT_FTP_FILEMETHOD, (long) CURLFTPMETHOD_SINGLECWD); in test()
51 res = curl_easy_perform(curl); in test()
55 test_setopt(curl, CURLOPT_URL, newURL); in test()
56 res = curl_easy_perform(curl); in test()
[all …]
Dlib572.c45 CURL *curl; in test() local
58 curl = curl_easy_init(); in test()
59 if(!curl) { in test()
66 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
67 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
68 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
70 test_setopt(curl, CURLOPT_URL, URL); in test()
78 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
82 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "Planes/Trains/Automobiles"); in test()
83 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP); in test()
[all …]
Dlib568.c45 CURL *curl; in test() local
58 curl = curl_easy_init(); in test()
59 if(!curl) { in test()
65 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
66 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
68 test_setopt(curl, CURLOPT_URL, URL); in test()
75 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
89 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_ANNOUNCE); in test()
91 test_setopt(curl, CURLOPT_READDATA, sdpf); in test()
92 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
[all …]
Dlib1533.c42 static void reset_data(struct cb_data *data, CURL *curl) in reset_data() argument
44 data->easy_handle = curl; in reset_data()
99 static int perform_and_check_connections(CURL *curl, const char *description, in perform_and_check_connections() argument
105 res = curl_easy_perform(curl); in perform_and_check_connections()
111 res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &connections); in perform_and_check_connections()
131 CURL *curl = NULL; in test() local
139 curl = curl_easy_init(); in test()
140 if(curl == NULL) { in test()
146 reset_data(&data, curl); in test()
148 test_setopt(curl, CURLOPT_URL, URL); in test()
[all …]
Dlibauthretry.c30 static CURLcode send_request(CURL *curl, const char *url, int seq, in send_request() argument
44 test_setopt(curl, CURLOPT_URL, full_url); in send_request()
45 test_setopt(curl, CURLOPT_VERBOSE, 1L); in send_request()
46 test_setopt(curl, CURLOPT_HEADER, 1L); in send_request()
47 test_setopt(curl, CURLOPT_HTTPGET, 1L); in send_request()
48 test_setopt(curl, CURLOPT_USERPWD, userpwd); in send_request()
49 test_setopt(curl, CURLOPT_HTTPAUTH, auth_scheme); in send_request()
51 res = curl_easy_perform(curl); in send_request()
58 static CURLcode send_wrong_password(CURL *curl, const char *url, int seq, in send_wrong_password() argument
61 return send_request(curl, url, seq, auth_scheme, "testuser:wrongpass"); in send_wrong_password()
[all …]
Dlib506.c133 CURL *curl; in fire() local
135 curl = curl_easy_init(); in fire()
136 if(!curl) { in fire()
142 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in fire()
143 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); in fire()
144 curl_easy_setopt(curl, CURLOPT_URL, tdata->url); in fire()
145 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); in fire()
147 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share); in fire()
150 code = curl_easy_perform(curl); in fire()
158 curl_easy_cleanup(curl); in fire()
[all …]
Dlib1525.c49 CURL *curl = NULL; in test() local
59 curl = curl_easy_init(); in test()
60 if(!curl) { in test()
72 test_setopt(curl, CURLOPT_URL, URL); in test()
73 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
74 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
75 test_setopt(curl, CURLOPT_PROXYHEADER, hhl); in test()
76 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED); in test()
77 test_setopt(curl, CURLOPT_POST, 0L); in test()
78 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
[all …]
Dlib598.c29 CURL *curl; in test() local
36 curl = curl_easy_init(); in test()
37 if(!curl) { in test()
43 test_setopt(curl, CURLOPT_URL, URL); in test()
44 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
45 test_setopt(curl, CURLOPT_REFERER, "http://example.com/the-moo"); in test()
46 test_setopt(curl, CURLOPT_USERAGENT, "the-moo agent next generation"); in test()
47 test_setopt(curl, CURLOPT_COOKIE, "name=moo"); in test()
48 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
50 res = curl_easy_perform(curl); in test()
[all …]
Dlib1526.c47 CURL *curl = NULL; in test() local
57 curl = curl_easy_init(); in test()
58 if(!curl) { in test()
75 test_setopt(curl, CURLOPT_URL, URL); in test()
76 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
77 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
78 test_setopt(curl, CURLOPT_PROXYHEADER, phl); in test()
79 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE); in test()
80 test_setopt(curl, CURLOPT_POST, 0L); in test()
81 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
[all …]
Dlib570.c34 CURL *curl; in test() local
43 curl = curl_easy_init(); in test()
44 if(!curl) { in test()
50 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
51 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
52 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
54 test_setopt(curl, CURLOPT_URL, URL); in test()
56 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_OPTIONS); in test()
63 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
67 res = curl_easy_perform(curl); in test()
[all …]
Dlib1527.c48 CURL *curl = NULL; in test() local
58 curl = curl_easy_init(); in test()
59 if(!curl) { in test()
75 test_setopt(curl, CURLOPT_URL, URL); in test()
76 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
77 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
78 test_setopt(curl, CURLOPT_POST, 0L); in test()
79 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
80 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
81 test_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); in test()
[all …]
Dlib569.c37 CURL *curl; in test() local
55 curl = curl_easy_init(); in test()
56 if(!curl) { in test()
63 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
64 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
65 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
67 test_setopt(curl, CURLOPT_URL, URL); in test()
69 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP); in test()
70 res = curl_easy_perform(curl); in test()
85 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
[all …]
Dlib500.c48 static void setupcallbacks(CURL *curl) in setupcallbacks() argument
50 curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, tst_opensocket); in setupcallbacks()
51 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, tst_closesocket); in setupcallbacks()
63 CURL *curl; in test() local
71 curl = curl_easy_init(); in test()
72 if(!curl) { in test()
78 test_setopt(curl, CURLOPT_URL, URL); in test()
79 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
83 test_setopt(curl, CURLOPT_DEBUGDATA, &libtest_debug_config); in test()
84 test_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); in test()
[all …]
Dlib547.c83 CURL *curl; in test() local
93 curl = curl_easy_init(); in test()
94 if(!curl) { in test()
100 test_setopt(curl, CURLOPT_URL, URL); in test()
101 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
102 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
105 test_setopt(curl, CURLOPT_POSTFIELDS, UPLOADTHIS); in test()
108 test_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctlcallback); in test()
109 test_setopt(curl, CURLOPT_IOCTLDATA, &counter); in test()
110 test_setopt(curl, CURLOPT_READFUNCTION, readcallback); in test()
[all …]
Dlib571.c104 CURL *curl; in test() local
120 curl = curl_easy_init(); in test()
121 if(!curl) { in test()
127 test_setopt(curl, CURLOPT_URL, URL); in test()
134 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
138 test_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write); in test()
139 test_setopt(curl, CURLOPT_TIMEOUT, 3L); in test()
140 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
141 test_setopt(curl, CURLOPT_WRITEDATA, protofile); in test()
143 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "RTP/AVP/TCP;interleaved=0-1"); in test()
[all …]
Dlib579.c88 CURL *curl; in test() local
99 curl = curl_easy_init(); in test()
100 if(!curl) { in test()
109 curl_easy_cleanup(curl); in test()
115 test_setopt(curl, CURLOPT_URL, URL); in test()
118 test_setopt(curl, CURLOPT_POST, 1L); in test()
122 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); in test()
126 test_setopt(curl, CURLOPT_READFUNCTION, read_callback); in test()
129 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()
132 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
[all …]
Dlib526.c56 CURL *curl[NUM_HANDLES]; in test() local
63 curl[i] = NULL; in test()
71 easy_init(curl[i]); in test()
73 easy_setopt(curl[i], CURLOPT_URL, URL); in test()
75 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L); in test()
80 multi_add_handle(m, curl[current]); in test()
101 curl_easy_cleanup(curl[current]); in test()
102 curl[current] = NULL; in test()
108 curl_multi_remove_handle(m, curl[0]); in test()
112 curl_easy_reset(curl[0]); in test()
[all …]
/external/curl/
DRELEASE-NOTES1 curl and libcurl 7.73.0
3 Public curl releases: 195
11 o curl: add --output-dir [25]
12 o curl: support XDG_CONFIG_HOME to find .curlrc [3]
13 o curl: update --help with categories [77]
41 o cmdline-opts/gen.pl: generate nicer "See Also" in curl.1 [66]
47 o curl.1: add see also no-progress-meter on two spots [67]
48 o curl.1: fix typo invokved -> invoked [36]
49 o curl: in retry output don't call all problems "transient" [74]
50 o curl: make --libcurl show binary posts correctly [130]
[all …]
/external/curl/packages/vms/
Dstage_curl_install.com9 $! [usr.bin]gnv$curl.exe
10 $! [usr.bin]curl-config.
12 $! [usr.bin]curl. hard link for [usr.bin]gnv$curl.exe
13 $! [usr.include.curl]curl.h
14 $! [usr.include.curl]curlver.h
15 $! [usr.include.curl]easy.h
16 $! [usr.include.curl]mprintf.h
17 $! [usr.include.curl]multi.h
18 $! [usr.include.curl]stdcheaders.h
19 $! [usr.include.curl]typecheck-gcc.h
[all …]
/external/curl/docs/examples/
Drtsp.c77 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument
81 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options()
82 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS); in rtsp_options()
83 my_curl_easy_perform(curl); in rtsp_options()
88 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument
101 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp); in rtsp_describe()
102 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE); in rtsp_describe()
103 my_curl_easy_perform(curl); in rtsp_describe()
104 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout); in rtsp_describe()
111 static void rtsp_setup(CURL *curl, const char *uri, const char *transport) in rtsp_setup() argument
[all …]
Dsimplessl.c50 CURL *curl; in main() local
78 curl = curl_easy_init(); in main()
79 if(curl) { in main()
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()
[all …]
Dcookie_interface.c36 print_cookies(CURL *curl) in print_cookies() argument
44 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies()
66 CURL *curl; in main() local
70 curl = curl_easy_init(); in main()
71 if(curl) { in main()
74 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/"); in main()
75 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
76 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* start cookie engine */ in main()
77 res = curl_easy_perform(curl); in main()
83 print_cookies(curl); in main()
[all …]
Dsmtp-tls.c88 CURL *curl; in main() local
95 curl = curl_easy_init(); in main()
96 if(curl) { in main()
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()
[all …]
Dprogressfunc.c49 CURL *curl; member
58 CURL *curl = myp->curl; in xferinfo() local
61 curl_easy_getinfo(curl, TIMEOPT, &curtime); in xferinfo()
102 CURL *curl; in main() local
106 curl = curl_easy_init(); in main()
107 if(curl) { in main()
109 prog.curl = curl; in main()
111 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); in main()
124 curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, xferinfo); in main()
127 curl_easy_setopt(curl, CURLOPT_XFERINFODATA, &prog); in main()
[all …]
/external/curl/src/
Dtool_operate.c325 my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize); in pre_transfer()
342 CURL *curl = per->curl; in post_per_transfer() local
345 if(!curl || !config) in post_per_transfer()
375 int rc = fwrite_xattr(curl, fileno(outs->stream)); in post_per_transfer()
388 curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &cond_unmet); in post_per_transfer()
457 curl_easy_getinfo(curl, CURLINFO_OS_ERRNO, &oserrno); in post_per_transfer()
468 curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol); in post_per_transfer()
471 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in post_per_transfer()
497 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in post_per_transfer()
498 curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol); in post_per_transfer()
[all …]

12345678910>>...73