Home
last modified time | relevance | path

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

12345678910>>...31

/external/curl/src/
Dtool_operate.c203 CURL *curl = config->easy; in operate_do() local
632 this_url = add_file_name_to_url(curl, this_url, uploadfile); in operate_do()
796 my_setopt(curl, CURLOPT_TCP_NODELAY, 0L); in operate_do()
799 my_setopt(curl, CURLOPT_TCP_FASTOPEN, 1L); in operate_do()
802 my_setopt(curl, CURLOPT_WRITEDATA, &outs); in operate_do()
803 my_setopt(curl, CURLOPT_INTERLEAVEDATA, &outs); in operate_do()
806 my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb); in operate_do()
811 my_setopt(curl, CURLOPT_WRITEFUNCTION, metalink_write_cb); in operate_do()
824 my_setopt(curl, CURLOPT_READDATA, &input); in operate_do()
826 my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb); in operate_do()
[all …]
Dtool_writeout.c107 void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo) in ourWriteOut() argument
138 curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &stringp)) in ourWriteOut()
144 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &longinfo)) in ourWriteOut()
149 curl_easy_getinfo(curl, CURLINFO_HTTP_CONNECTCODE, in ourWriteOut()
155 curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &longinfo)) in ourWriteOut()
160 curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &longinfo)) in ourWriteOut()
165 curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &longinfo)) in ourWriteOut()
170 curl_easy_getinfo(curl, CURLINFO_REDIRECT_COUNT, &longinfo)) in ourWriteOut()
175 curl_easy_getinfo(curl, CURLINFO_REDIRECT_TIME, in ourWriteOut()
181 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &doubleinfo)) in ourWriteOut()
[all …]
/external/curl/tests/libtest/
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 …]
Dlib572.c45 CURL *curl; in test() local
58 if((curl = curl_easy_init()) == NULL) { 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()
76 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
80 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "Planes/Trains/Automobiles"); in test()
81 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP); in test()
82 res = curl_easy_perform(curl); in test()
[all …]
Dlib568.c45 CURL *curl; in test() local
58 if((curl = curl_easy_init()) == NULL) { in test()
64 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
65 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
67 test_setopt(curl, CURLOPT_URL, URL); in test()
73 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
87 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_ANNOUNCE); in test()
89 test_setopt(curl, CURLOPT_READDATA, sdpf); in test()
90 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
91 test_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t) file_info.st_size); 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 if((curl = curl_easy_init()) == NULL) { in test()
145 reset_data(&data, curl); in test()
147 test_setopt(curl, CURLOPT_URL, URL); in test()
148 test_setopt(curl, CURLOPT_POST, 1L); in test()
[all …]
Dlib1525.c49 CURL *curl = NULL; in test() local
59 if((curl = curl_easy_init()) == NULL) { in test()
71 test_setopt(curl, CURLOPT_URL, URL); in test()
72 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
73 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
74 test_setopt(curl, CURLOPT_PROXYHEADER, hhl); in test()
75 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED); in test()
76 test_setopt(curl, CURLOPT_POST, 0L); in test()
77 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
78 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
[all …]
Dlib506.c133 CURL *curl; in fire() local
136 curl = curl_easy_init(); in fire()
137 if(!curl) { in fire()
143 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in fire()
144 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); in fire()
145 curl_easy_setopt(curl, CURLOPT_URL, tdata->url); in fire()
147 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share); in fire()
150 code = curl_easy_perform(curl); in fire()
157 curl_easy_cleanup(curl); in fire()
179 CURL *curl; in test() local
[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 if((curl = curl_easy_init()) == NULL) { in test()
77 test_setopt(curl, CURLOPT_URL, URL); in test()
78 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
82 test_setopt(curl, CURLOPT_DEBUGDATA, &libtest_debug_config); in test()
83 test_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); in test()
84 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
[all …]
Dlib1526.c47 CURL *curl = NULL; in test() local
57 if((curl = curl_easy_init()) == NULL) { 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, phl); in test()
78 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE); in test()
79 test_setopt(curl, CURLOPT_POST, 0L); in test()
80 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
81 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
[all …]
Dlib598.c29 CURL *curl; in test() local
36 if((curl = curl_easy_init()) == NULL) { in test()
42 test_setopt(curl, CURLOPT_URL, URL); in test()
43 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
44 test_setopt(curl, CURLOPT_REFERER, "http://example.com/the-moo"); in test()
45 test_setopt(curl, CURLOPT_USERAGENT, "the-moo agent next generation"); in test()
46 test_setopt(curl, CURLOPT_COOKIE, "name=moo"); in test()
47 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
49 res = curl_easy_perform(curl); in test()
55 curl_easy_reset(curl); in test()
[all …]
Dlib570.c34 CURL *curl; in test() local
43 if((curl = curl_easy_init()) == NULL) { in test()
49 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test()
50 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test()
51 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
53 test_setopt(curl, CURLOPT_URL, URL); in test()
55 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_OPTIONS); in test()
61 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
65 res = curl_easy_perform(curl); in test()
72 test_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 999L); in test()
[all …]
Dlib1527.c48 CURL *curl = NULL; in test() local
58 if((curl = curl_easy_init()) == NULL) { 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_POST, 0L); in test()
78 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
79 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
80 test_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); in test()
81 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
[all …]
Dlib569.c37 CURL *curl; in test() local
56 if((curl = curl_easy_init()) == NULL) { 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()
84 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
88 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP); in test()
[all …]
Dlib547.c83 CURL *curl; in test() local
93 if((curl = curl_easy_init()) == NULL) { in test()
99 test_setopt(curl, CURLOPT_URL, URL); in test()
100 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
101 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
104 test_setopt(curl, CURLOPT_POSTFIELDS, UPLOADTHIS); in test()
107 test_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctlcallback); in test()
108 test_setopt(curl, CURLOPT_IOCTLDATA, &counter); in test()
109 test_setopt(curl, CURLOPT_READFUNCTION, readcallback); in test()
110 test_setopt(curl, CURLOPT_READDATA, &counter); 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 …]
Dlib555.c79 CURL *curl = NULL; in test() local
88 easy_init(curl); in test()
90 easy_setopt(curl, CURLOPT_URL, URL); in test()
91 easy_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
92 easy_setopt(curl, CURLOPT_HEADER, 1L); in test()
95 easy_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctlcallback); in test()
96 easy_setopt(curl, CURLOPT_IOCTLDATA, &counter); in test()
97 easy_setopt(curl, CURLOPT_READFUNCTION, readcallback); in test()
98 easy_setopt(curl, CURLOPT_READDATA, &counter); in test()
101 easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(UPLOADTHIS)); in test()
[all …]
Dlib571.c104 CURL *curl; in test() local
121 if((curl = curl_easy_init()) == NULL) { in test()
127 test_setopt(curl, CURLOPT_URL, URL); in test()
133 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
137 test_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write); in test()
138 test_setopt(curl, CURLOPT_TIMEOUT, 3L); in test()
139 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
140 test_setopt(curl, CURLOPT_WRITEDATA, protofile); in test()
142 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "RTP/AVP/TCP;interleaved=0-1"); in test()
143 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP); in test()
[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]curlbuild.h
15 $! [usr.include.curl]curlrules.h
16 $! [usr.include.curl]curlver.h
17 $! [usr.include.curl]easy.h
18 $! [usr.include.curl]mprintf.h
19 $! [usr.include.curl]multi.h
[all …]
/external/curl/docs/examples/
Drtsp.c75 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument
79 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options()
80 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS); in rtsp_options()
81 my_curl_easy_perform(curl); in rtsp_options()
86 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument
99 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp); in rtsp_describe()
100 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE); in rtsp_describe()
101 my_curl_easy_perform(curl); in rtsp_describe()
102 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout); in rtsp_describe()
109 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 …]
Dprogressfunc.c35 CURL *curl; member
44 CURL *curl = myp->curl; in xferinfo() local
47 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &curtime); in xferinfo()
82 CURL *curl; in main() local
86 curl = curl_easy_init(); in main()
87 if(curl) { in main()
89 prog.curl = curl; in main()
91 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/"); in main()
93 curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, older_progress); in main()
95 curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &prog); 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()
65 CURL *curl; in main() local
69 curl = curl_easy_init(); in main()
70 if(curl) { in main()
73 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/"); in main()
74 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
75 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* start cookie engine */ in main()
76 res = curl_easy_perform(curl); in main()
82 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 …]
Dsmtp-ssl.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()
103 curl_easy_setopt(curl, CURLOPT_URL, "smtps://mainserver.example.net"); in main()
114 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
122 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
132 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM); in main()
139 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
[all …]

12345678910>>...31