/curl/tests/http/ |
H A D | test_01_basic.py | 47 url = f'http://{env.domain1}:{env.http_port}/data.json' 48 r = curl.http_get(url=url) 56 url = f'https://{env.domain1}:{env.https_port}/data.json' 57 r = curl.http_get(url=url) 65 url = f'https://{env.domain1}:{env.https_port}/data.json' 66 r = curl.http_get(url=url, extra_args=['--http2']) 74 url = f'https://{env.domain2}:{env.https_port}/data.json' 75 r = curl.http_get(url=url, extra_args=['--http2']) 83 url = f'https://{env.domain1}:{env.h3_port}/data.json' 84 r = curl.http_get(url=url, extra_args=['--http3-only']) [all …]
|
H A D | test_15_tracing.py | 42 url = f'http://{env.domain1}:{env.http_port}/data.json' 43 r = curl.http_get(url=url, def_tracing=False, extra_args=[ 53 url = f'http://{env.domain1}:{env.http_port}/data.json' 54 r = curl.http_get(url=url, def_tracing=False, extra_args=[ 66 url = f'http://{env.domain1}:{env.http_port}/data.json' 67 r = curl.http_get(url=url, def_tracing=False, extra_args=[ 79 url = f'http://{env.domain1}:{env.http_port}/data.json' 80 r = curl.http_get(url=url, def_tracing=False, extra_args=[ 98 url = f'http://{env.domain1}:{env.http_port}/data.json' 99 r = curl.http_get(url=url, def_tracing=False, extra_args=[
|
H A D | test_20_websockets.py | 47 url = f'http://localhost:{env.ws_port}/' 50 r = curl.http_download(urls=[url]) 84 r = curl.http_download(urls=[url]) 92 url = f'ws://localhost:{env.ws_port}/' 93 r = client.run(args=[url, payload]) 102 url = f'ws://localhost:{env.ws_port}/' 103 r = client.run(args=[url, payload]) 111 url = f'ws://localhost:{env.ws_port}/' 120 url = f'ws://localhost:{env.ws_port}/' 129 url = f'ws://localhost:{env.ws_port}/' [all …]
|
H A D | test_07_upload.py | 64 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto) 96 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto) 114 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto, 204 url = f'https://{env.authority_for(env.domain1, proto)}'\ 278 '--url', url, 301 '--url', url, 324 '--url', url, 388 r = curl.http_form(urls=[url], alpn_proto=proto, form={ 479 r = client.run([url]) 493 r = client.run([url]) [all …]
|
H A D | test_17_ssl_use.py | 53 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/sslinfo' 54 r = curl.http_get(url=url, alpn_proto=proto) 113 url = f'https://{env.authority_for(domain, proto)}/curltest/sslinfo' 114 r = curl.http_get(url=url, alpn_proto=proto) 130 url = f'https://{env.authority_for(domain, proto)}/curltest/sslinfo' 131 r = curl.http_get(url=url, alpn_proto=proto, extra_args=[ 156 url = f'https://{env.authority_for(domain, proto)}/curltest/sslinfo' 157 r = curl.http_get(url=url, alpn_proto=proto) 171 url = f'https://{env.authority_for(domain, proto)}/curltest/sslinfo' 172 r = curl.http_get(url=url, alpn_proto=proto) [all …]
|
H A D | test_14_auth.py | 55 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json' 56 r = curl.http_download(urls=[url], alpn_proto=proto) 65 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json' 66 r = curl.http_download(urls=[url], alpn_proto=proto, extra_args=[ 78 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json' 79 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto, extra_args=[ 92 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json' 93 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto, extra_args=[ 113 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json' 114 r = curl.http_upload(urls=[url], data=f'@{fdata}', alpn_proto=proto, extra_args=[ [all …]
|
H A D | test_13_proxy_auth.py | 66 url = f'http://localhost:{env.http_port}/data.json' 67 r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True, 74 url = f'http://localhost:{env.http_port}/data.json' 86 url = f'http://localhost:{env.http_port}/data.json' 97 url = f'http://localhost:{env.http_port}/data.json' 106 url = f'http://localhost:{env.http_port}/data.json' 115 url = f'http://localhost:{env.http_port}/data.json' 131 url = f'https://localhost:{env.https_port}/data.json' 133 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True, 149 url = f'https://localhost:{env.https_port}/data.json' [all …]
|
H A D | test_10_proxy.py | 64 url = f'http://localhost:{env.http_port}/data.json' 77 url = f'http://localhost:{env.http_port}/data.json' 115 url = f'http://localhost:{env.http_port}/data.json' 127 url = f'http://localhost:{env.http_port}/data.json' 138 url = f'https://localhost:{env.https_port}/data.json' 155 url = f'https://localhost:{env.https_port}/data.json?[0-0]' 258 url = f'https://localhost:{env.https_port}/data.json' 283 url = f'https://localhost:{env.https_port}/data.json' 309 url = f'http://localhost:{env.http_port}/data.json' 335 url = f'https://localhost:{env.https_port}/data.json' [all …]
|
H A D | scorecard.py | 154 url = f'{url}?[0-{count - 1}]' 210 'single': self.transfer_single(url=url, proto=proto, count=10), 213 props['serial'] = self.transfer_serial(url=url, proto=proto, 215 props['parallel'] = self.transfer_parallel(url=url, proto=proto, 242 results = self.download_url(label=label, url=url, 259 results = self.download_url(label=label, url=url, 297 '1': self.do_requests(url=url, proto=proto, count=count), 298 '6': self.do_requests(url=url, proto=proto, count=count, 300 '25': self.do_requests(url=url, proto=proto, count=count, 302 '50': self.do_requests(url=url, proto=proto, count=count, [all …]
|
H A D | test_16_info.py | 63 url = f'https://{env.authority_for(env.domain1, proto)}/data.json?[0-{count-1}]' 64 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True) 76 url = f'https://{env.authority_for(env.domain1, proto)}/data.json.302?[0-{count-1}]' 77 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True, extra_args=[ 92 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-{count-1}]' 93 r = curl.http_upload(urls=[url], data=f'@{fdata}', alpn_proto=proto, 107 url = f'http://{env.domain1}:{env.http_port}/data.json?[0-{count-1}]' 108 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True) 136 url = s['url_effective'] 146 if url.startswith('https:'):
|
/curl/tests/libtest/ |
H A D | libauthretry.c | 32 static CURLcode send_request(CURL *curl, const char *url, int seq, in send_request() argument 36 size_t len = strlen(url) + 4 + 1; in send_request() 43 msnprintf(full_url, len, "%s%04d", url, seq); in send_request() 60 static CURLcode send_wrong_password(CURL *curl, const char *url, int seq, in send_wrong_password() argument 69 return send_request(curl, url, seq, auth_scheme, "testuser:testpass"); in send_right_password() 85 CURLcode test(char *url) in test() argument 113 res = send_wrong_password(curl, url, 100, main_auth_scheme); in test() 117 res = send_right_password(curl, url, 200, fallback_auth_scheme); in test() 131 res = send_wrong_password(curl, url, 300, main_auth_scheme); in test() 135 res = send_wrong_password(curl, url, 400, fallback_auth_scheme); in test() [all …]
|
H A D | lib506.c | 34 char *url; member 146 curl_easy_setopt(curl, CURLOPT_URL, tdata->url); in fire() 156 tdata->url, i, (int)code); in fire() 180 char *url = NULL; in test() local 277 curl_free(tdata.url); in test() 291 url = suburl(URL, i); in test() 294 test_setopt(curl, CURLOPT_URL, url); in test() 307 curl_free(url); in test() 318 url = suburl(URL, i); in test() 321 test_setopt(curl, CURLOPT_URL, url); in test() [all …]
|
H A D | lib586.c | 32 char *url; member 113 curl_easy_setopt(curl, CURLOPT_URL, tdata->url); in fire() 122 tdata->url, i, (int)code); in fire() 136 char *url; in test() local 191 tdata.url = URL; in test() 210 url = URL; in test() 211 test_setopt(curl, CURLOPT_URL, url); in test()
|
/curl/docs/examples/ |
H A D | chkspeed.c | 69 const char *url = URL_1M; in main() local 106 url = URL_1M; in main() 109 url = URL_2M; in main() 112 url = URL_5M; in main() 115 url = URL_10M; in main() 118 url = URL_20M; in main() 121 url = URL_50M; in main() 124 url = URL_100M; in main() 143 url = *argv; in main() 165 curl_easy_setopt(curl_handle, CURLOPT_URL, url); in main() [all …]
|
H A D | crawler.c | 78 CURL *make_handle(char *url) in make_handle() argument 84 curl_easy_setopt(handle, CURLOPT_URL, url); in make_handle() 120 size_t follow_links(CURLM *multi_handle, memory *mem, char *url) in follow_links() argument 124 htmlDocPtr doc = htmlReadMemory(mem->buf, mem->size, url, NULL, opts); in follow_links() 147 href = xmlBuildURI(href, (xmlChar *) url); in follow_links() 200 char *url; in main() local 203 curl_easy_getinfo(handle, CURLINFO_EFFECTIVE_URL, &url); in main() 210 printf("[%d] HTTP 200 (%s): %s\n", complete, ctype, url); in main() 213 pending += follow_links(multi_handle, mem, url); in main() 219 printf("[%d] HTTP %d: %s\n", complete, (int) res_status, url); in main() [all …]
|
H A D | httpput-postfields.c | 54 char *url; in main() local 59 url = argv[1]; in main() 87 curl_easy_setopt(curl, CURLOPT_URL, url); in main()
|
/curl/tests/data/ |
H A D | test423 | 34 -w with url.* variables 37 …%TESTNUMBER?qqqq#ffff" -w '%{url.host}+%{url.path}+%{url.scheme}+%{url.user}+%{url.password}+%{url…
|
H A D | test1221 | 7 --url-query 29 --url-query with --data-urlencode 32 …BER --url-query "my name is moo[]" --url-query "yes=s i r" --url-query "v_alue@%LOGDIR/%TESTNUMBER…
|
H A D | test970 | 62 …url":"http://%HOSTIP:%HTTPPORT/%TESTNUMBER","url.scheme":"http","url.user":null,"url.password":nul…
|
H A D | test972 | 63 …url":"http://%HOSTIP:%HTTPPORT/%TESTNUMBER","url.scheme":"http","url.user":null,"url.password":nul…
|
H A D | test2075 | 4 --disallow-username-in-url 19 Verify usernames are not allowed in url 22 --disallow-username-in-url http://username:password@example.com/
|
/curl/docs/cmdline-opts/ |
H A D | url-query.md | 4 Long: url-query 15 - --url-query name=val $URL 16 - --url-query =encodethis http://example.net/foo 17 - --url-query name@file $URL 18 - --url-query @fileonly $URL 19 - --url-query "+name=%20foo" $URL 22 # `--url-query`
|
/curl/.github/ISSUE_TEMPLATE/ |
H A D | config.yml | 8 url: https://github.com/curl/curl/discussions 11 url: https://curl.se/mail/ 14 url: https://curl.se/support.html 17 url: https://curl.se/mail/
|
/curl/src/ |
H A D | tool_xattr.c | 47 char *stripcredentials(const char *url); 51 char *stripcredentials(const char *url) in stripcredentials() argument 58 uc = curl_url_set(u, CURLUPART_URL, url, CURLU_GUESS_SCHEME); in stripcredentials() 114 int fwrite_xattr(CURL *curl, const char *url, int fd) in fwrite_xattr() argument 128 char *nurl = stripcredentials(url); in fwrite_xattr()
|
/curl/tests/unit/ |
H A D | unit1621.c | 47 char *stripcredentials(const char *url); 70 const char *url = tests[i].input; 71 char *stripped = stripcredentials(url);
|