/external/curl/tests/libtest/ |
D | lib1521.c | 105 CURL *curl = NULL; in test() local 130 easy_init(curl); in test() 137 res = curl_easy_setopt(curl, CURLOPT_WRITEDATA, &object); in test() 140 res = curl_easy_setopt(curl, CURLOPT_WRITEDATA, NULL); in test() 143 res = curl_easy_setopt(curl, CURLOPT_URL, "string"); in test() 146 res = curl_easy_setopt(curl, CURLOPT_URL, NULL); in test() 149 res = curl_easy_setopt(curl, CURLOPT_PORT, 0L); in test() 152 res = curl_easy_setopt(curl, CURLOPT_PORT, 22L); in test() 155 res = curl_easy_setopt(curl, CURLOPT_PORT, LO); in test() 158 res = curl_easy_setopt(curl, CURLOPT_PORT, HI); in test() [all …]
|
D | lib572.c | 45 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 …]
|
D | lib568.c | 45 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 …]
|
D | lib1533.c | 42 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 …]
|
D | libauthretry.c | 30 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 …]
|
D | lib506.c | 133 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 …]
|
D | lib1525.c | 49 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 …]
|
D | lib500.c | 48 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 …]
|
D | lib1526.c | 47 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 …]
|
D | lib598.c | 29 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 …]
|
D | lib570.c | 34 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 …]
|
D | lib1527.c | 48 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 …]
|
D | lib569.c | 37 CURL *curl; in test() local 56 curl = curl_easy_init(); in test() 57 if(!curl) { in test() 64 test_setopt(curl, CURLOPT_HEADERDATA, stdout); in test() 65 test_setopt(curl, CURLOPT_WRITEDATA, stdout); in test() 66 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test() 68 test_setopt(curl, CURLOPT_URL, URL); in test() 70 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP); in test() 71 res = curl_easy_perform(curl); in test() 86 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test() [all …]
|
D | lib571.c | 104 CURL *curl; in test() local 121 curl = curl_easy_init(); in test() 122 if(!curl) { in test() 128 test_setopt(curl, CURLOPT_URL, URL); in test() 135 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri); in test() 139 test_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write); in test() 140 test_setopt(curl, CURLOPT_TIMEOUT, 3L); in test() 141 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test() 142 test_setopt(curl, CURLOPT_WRITEDATA, protofile); in test() 144 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "RTP/AVP/TCP;interleaved=0-1"); in test() [all …]
|
D | lib547.c | 83 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 …]
|
D | lib555.c | 79 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, (long)strlen(UPLOADTHIS)); in test() [all …]
|
D | lib579.c | 89 CURL *curl; in test() local 100 curl = curl_easy_init(); in test() 101 if(!curl) { in test() 110 curl_easy_cleanup(curl); in test() 116 test_setopt(curl, CURLOPT_URL, URL); in test() 119 test_setopt(curl, CURLOPT_POST, 1L); in test() 123 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); in test() 127 test_setopt(curl, CURLOPT_READFUNCTION, read_callback); in test() 130 test_setopt(curl, CURLOPT_READDATA, &pooh); in test() 133 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test() [all …]
|
/external/curl/src/ |
D | tool_operate.c | 264 CURL *curl = config->easy; in operate_do() local 693 this_url = add_file_name_to_url(curl, this_url, uploadfile); in operate_do() 860 my_setopt(curl, CURLOPT_TCP_NODELAY, 0L); in operate_do() 863 my_setopt(curl, CURLOPT_TCP_FASTOPEN, 1L); in operate_do() 866 my_setopt(curl, CURLOPT_WRITEDATA, &outs); in operate_do() 867 my_setopt(curl, CURLOPT_INTERLEAVEDATA, &outs); in operate_do() 870 my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb); in operate_do() 875 my_setopt(curl, CURLOPT_WRITEFUNCTION, metalink_write_cb); in operate_do() 888 my_setopt(curl, CURLOPT_READDATA, &input); in operate_do() 890 my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb); in operate_do() [all …]
|
D | tool_writeout.c | 107 void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo) in ourWriteOut() argument 143 curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &stringp)) in ourWriteOut() 149 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &longinfo)) in ourWriteOut() 154 curl_easy_getinfo(curl, CURLINFO_HTTP_CONNECTCODE, in ourWriteOut() 160 curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &longinfo)) in ourWriteOut() 165 curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &longinfo)) in ourWriteOut() 170 curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &longinfo)) in ourWriteOut() 175 curl_easy_getinfo(curl, CURLINFO_REDIRECT_COUNT, &longinfo)) in ourWriteOut() 180 curl_easy_getinfo(curl, CURLINFO_REDIRECT_TIME, in ourWriteOut() 186 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &doubleinfo)) in ourWriteOut() [all …]
|
/external/curl/packages/vms/ |
D | stage_curl_install.com | 9 $! [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/ |
D | rtsp.c | 77 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 …]
|
D | simplessl.c | 50 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 …]
|
D | progressfunc.c | 35 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 …]
|
D | cookie_interface.c | 36 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, "http://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 …]
|
/external/curl/ |
D | RELEASE-NOTES | 3 Public curl releases: 172 12 o curl-config: add --ssl-backends [10] 36 o curl: limit -# update frequency for unknown total size [16] 38 o curl.h: remove incorrect comment about ERRORBUFFER 40 o curl: remove __EMX__ #ifdefs [19] 50 o curl.1: documented two missing valid exit codes 51 o curl.1: mention http:// and https:// as valid proxy prefixes 55 o curl: support >256 bytes warning messsages [26] 68 o curl: Support size modifiers for --max-filesize [32] 96 o curl: progress bar refresh, get width using ioctl() [54] [all …]
|