Home
last modified time | relevance | path

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

12345678910>>...25

/external/curl/src/
Dtool_operate.c202 CURL *curl = config->easy; in operate_do() local
637 this_url = add_file_name_to_url(curl, this_url, uploadfile); in operate_do()
801 my_setopt(curl, CURLOPT_TCP_NODELAY, 1L); in operate_do()
804 my_setopt(curl, CURLOPT_WRITEDATA, &outs); in operate_do()
807 my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb); in operate_do()
812 my_setopt(curl, CURLOPT_WRITEFUNCTION, metalink_write_cb); in operate_do()
825 my_setopt(curl, CURLOPT_READDATA, &input); in operate_do()
827 my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb); in operate_do()
831 my_setopt(curl, CURLOPT_SEEKDATA, &input); in operate_do()
832 my_setopt(curl, CURLOPT_SEEKFUNCTION, tool_seek_cb); in operate_do()
[all …]
Dtool_writeout.c101 void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo) in ourWriteOut() argument
132 curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &stringp)) in ourWriteOut()
138 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &longinfo)) in ourWriteOut()
143 curl_easy_getinfo(curl, CURLINFO_HTTP_CONNECTCODE, in ourWriteOut()
149 curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &longinfo)) in ourWriteOut()
154 curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &longinfo)) in ourWriteOut()
159 curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &longinfo)) in ourWriteOut()
164 curl_easy_getinfo(curl, CURLINFO_REDIRECT_COUNT, &longinfo)) in ourWriteOut()
169 curl_easy_getinfo(curl, CURLINFO_REDIRECT_TIME, in ourWriteOut()
175 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &doubleinfo)) in ourWriteOut()
[all …]
/external/curl/tests/libtest/
Dlibauthretry.c31 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 …]
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 …]
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 …]
Dlib506.c133 CURL *curl; in fire() local
136 if ((curl = curl_easy_init()) == NULL) { 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()
146 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share); in fire()
149 code = curl_easy_perform(curl); in fire()
156 curl_easy_cleanup(curl); in fire()
178 CURL *curl; in test() local
232 if ((curl = curl_easy_init()) == NULL) { 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()
100 easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(UPLOADTHIS)); in test()
[all …]
Dlib571.c102 CURL *curl; in test() local
119 if ((curl = curl_easy_init()) == NULL) { in test()
125 test_setopt(curl, CURLOPT_URL, URL); in test()
131 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test()
135 test_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write); in test()
136 test_setopt(curl, CURLOPT_TIMEOUT, 3L); in test()
137 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
138 test_setopt(curl, CURLOPT_WRITEDATA, protofile); in test()
140 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "RTP/AVP/TCP;interleaved=0-1"); in test()
141 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP); in test()
[all …]
Dlib579.c89 CURL *curl; in test() local
100 if ((curl = curl_easy_init()) == NULL) { 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()
135 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
[all …]
/external/curl/docs/examples/
Drtsp.c71 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument
75 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options()
76 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS); in rtsp_options()
77 my_curl_easy_perform(curl); in rtsp_options()
82 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument
95 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp); in rtsp_describe()
96 my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE); in rtsp_describe()
97 my_curl_easy_perform(curl); in rtsp_describe()
98 my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout); in rtsp_describe()
105 static void rtsp_setup(CURL *curl, const char *uri, const char *transport) in rtsp_setup() argument
[all …]
Dsimplessl.c47 CURL *curl; in main() local
74 curl = curl_easy_init(); in main()
75 if(curl) { in main()
77 curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site"); in main()
78 curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile); in main()
84 if (curl_easy_setopt(curl, CURLOPT_SSLENGINE,pEngine) != CURLE_OK) in main()
89 if (curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT,1L) != CURLE_OK) in main()
99 curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM"); in main()
102 curl_easy_setopt(curl,CURLOPT_SSLCERT,pCertFile); in main()
107 curl_easy_setopt(curl,CURLOPT_KEYPASSWD,pPassphrase); in main()
[all …]
Dprogressfunc.c30 CURL *curl; member
39 CURL *curl = myp->curl; in xferinfo() local
42 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &curtime); in xferinfo()
77 CURL *curl; in main() local
81 curl = curl_easy_init(); in main()
82 if(curl) { in main()
84 prog.curl = curl; in main()
86 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/"); in main()
88 curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, older_progress); in main()
90 curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &prog); in main()
[all …]
Dsmtp-tls.c81 CURL *curl; in main() local
88 curl = curl_easy_init(); in main()
89 if(curl) { in main()
91 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
92 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
98 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mainserver.example.net:587"); in main()
105 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in main()
118 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem"); in main()
126 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM); in main()
133 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
[all …]
Dsmtp-ssl.c81 CURL *curl; in main() local
88 curl = curl_easy_init(); in main()
89 if(curl) { in main()
91 curl_easy_setopt(curl, CURLOPT_USERNAME, "user"); in main()
92 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret"); in main()
96 curl_easy_setopt(curl, CURLOPT_URL, "smtps://mainserver.example.net"); in main()
107 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in main()
115 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in main()
124 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM); in main()
131 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients); in main()
[all …]
Dcookie_interface.c33 print_cookies(CURL *curl) in print_cookies() argument
41 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies()
61 CURL *curl; in main() local
65 curl = curl_easy_init(); in main()
66 if (curl) { in main()
69 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/"); in main()
70 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in main()
71 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* just to start the cookie engine */ in main()
72 res = curl_easy_perform(curl); in main()
78 print_cookies(curl); in main()
[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 …]

12345678910>>...25