Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 172) sorted by relevance

1234567

/curl/tests/http/
H A Dtest_01_basic.py47 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'])
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'])
124 r = curl.http_get(url=url, extra_args=['--http2'])
[all …]
H A Dtest_15_tracing.py42 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 Dtest_20_websockets.py47 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 Dtest_17_ssl_use.py57 r = curl.http_get(url=url, alpn_proto=proto)
111 r = curl.http_get(url=url, alpn_proto=proto)
126 r = curl.http_get(url=url, alpn_proto=proto, extra_args=[
152 r = curl.http_get(url=url, alpn_proto=proto)
167 r = curl.http_get(url=url, alpn_proto=proto)
236 r = curl.http_get(url=url, alpn_proto=proto, extra_args=extra_args)
261 r = curl.http_get(url=url, alpn_proto=proto, extra_args=[
309 r = curl.http_get(url=url, alpn_proto=proto, extra_args=extra_args)
334 '-V', 'h3', url
353 r = curl.http_get(url=url, alpn_proto=proto)
[all …]
H A Dtest_07_upload.py66 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto)
98 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto)
273 url = f'https://{env.authority_for(env.domain1, proto)}'\
347 '--url', url,
370 '--url', url,
393 '--url', url,
457 r = curl.http_form(urls=[url], alpn_proto=proto, form={
548 r = client.run(['-V', proto, url])
569 r = client.run(['-V', proto, url])
586 r = client.run(['-V', proto, url])
[all …]
H A Dtest_14_auth.py53 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json'
54 r = curl.http_download(urls=[url], alpn_proto=proto)
63 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json'
64 r = curl.http_download(urls=[url], alpn_proto=proto, extra_args=[
76 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json'
77 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto, extra_args=[
90 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json'
91 r = curl.http_upload(urls=[url], data=data, alpn_proto=proto, extra_args=[
111 url = f'https://{env.authority_for(env.domain1, proto)}/restricted/digest/data.json'
112 r = curl.http_upload(urls=[url], data=f'@{fdata}', alpn_proto=proto, extra_args=[
[all …]
H A Dtest_13_proxy_auth.py63 url = f'http://localhost:{env.http_port}/data.json'
64 r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
71 url = f'http://localhost:{env.http_port}/data.json'
83 url = f'http://localhost:{env.http_port}/data.json'
94 url = f'http://localhost:{env.http_port}/data.json'
103 url = f'http://localhost:{env.http_port}/data.json'
112 url = f'http://localhost:{env.http_port}/data.json'
128 url = f'https://localhost:{env.https_port}/data.json'
130 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True,
146 url = f'https://localhost:{env.https_port}/data.json'
[all …]
H A Dtest_10_proxy.py64 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 Dtest_19_shutdown.py60 url = f'https://{env.authority_for(env.domain1, proto)}/data.json?[0-1]'
61 r = curl.http_download(urls=[url], alpn_proto=proto, with_tcpdump=True, extra_args=[
78 url = f'https://{env.authority_for(env.domain1, proto)}/data.json?[0-1]'
79 r = curl.http_download(urls=[url], alpn_proto=proto, with_tcpdump=True, extra_args=[
96 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/tweak/?'\
98 r = curl.http_download(urls=[url], alpn_proto=proto)
112 url = f'https://localhost:{env.https_port}/{docname}'
120 '-n', f'{count}', '-f', '-V', proto, url
141 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/tweak/?'\
143 r = curl.http_download(urls=[url], alpn_proto=proto, extra_args=[
[all …]
H A Dtest_31_vsftpds.py83 url = f'ftp://{env.ftp_domain}:{vsftpds.port}/'
84 r = curl.ftp_ssl_get(urls=[url], with_stats=True)
98 r = curl.ftp_ssl_get(urls=[url], with_stats=True)
110 r = curl.ftp_ssl_get(urls=[url], with_stats=True)
122 r = curl.ftp_ssl_get(urls=[url], with_stats=True, extra_args=[
137 url = f'ftp://{env.ftp_domain}:{vsftpds.port}/'
168 url = f'ftp://{env.ftp_domain}:{vsftpds.port}/'
186 url = f'ftp://{env.ftp_domain}:{vsftpds.port}/'
203 r = curl.ftp_ssl_get(urls=[url], with_stats=True, extra_args=[
216 url = f'ftp://{env.ftp_domain}:{vsftpds.port}/'
[all …]
H A Dtest_30_vsftpd.py76 url = f'ftp://{env.ftp_domain}:{vsftpd.port}/'
77 r = curl.ftp_get(urls=[url], with_stats=True)
90 url = f'ftp://{env.ftp_domain}:{vsftpd.port}/{docname}?[0-{count-1}]'
91 r = curl.ftp_get(urls=[url], with_stats=True)
103 r = curl.ftp_get(urls=[url], with_stats=True)
115 r = curl.ftp_get(urls=[url], with_stats=True, extra_args=[
130 url = f'ftp://{env.ftp_domain}:{vsftpd.port}/'
146 r = curl.ftp_get(urls=[url], with_stats=True, with_tcpdump=True)
160 url = f'ftp://{env.ftp_domain}:{vsftpd.port}/'
172 r = curl.ftp_get(urls=[url], with_stats=True, extra_args=[
[all …]
H A Dscorecard.py169 url = f'{url}?[0-{count - 1}]'
231 'single': self.transfer_single(url=url, count=10),
234 props['serial'] = self.transfer_serial(url=url, count=count)
235 props['parallel'] = self.transfer_parallel(url=url, count=count)
245 scores[label] = self.download_url(label=label, url=url, count=count)
353 'single': self.upload_single(url=url, fpath=fpath, count=10),
356 props['serial'] = self.upload_serial(url=url, fpath=fpath, count=count)
357 props['parallel'] = self.upload_parallel(url=url, fpath=fpath, count=count)
372 scores[label] = self.upload_url(label=label, url=url, fpath=fpath,
420 props[str(m)] = self.do_requests(url=url, count=count, max_parallel=m)
[all …]
H A Dtest_16_info.py60 url = f'https://{env.authority_for(env.domain1, proto)}/data.json?[0-{count-1}]'
61 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True)
75 url = f'https://{env.authority_for(env.domain1, proto)}/data.json.302?[0-{count-1}]'
76 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True, extra_args=[
93 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-{count-1}]'
94 r = curl.http_upload(urls=[url], data=f'@{fdata}', alpn_proto=proto,
110 url = f'http://{env.domain1}:{env.http_port}/data.json?[0-{count-1}]'
111 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True)
140 url = s['url_effective']
150 if url.startswith('https:'):
/curl/tests/libtest/
H A Dlibauthretry.c32 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 Dlib506.c34 char *url; member
146 curl_easy_setopt(curl, CURLOPT_URL, tdata->url); in test_fire()
156 tdata->url, i, (int)code); in test_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 …]
/curl/docs/examples/
H A Dchkspeed.c69 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 Dcrawler.c78 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 …]
/curl/tests/data/
H A Dtest42334 -w with url.* variables
37 …%TESTNUMBER?qqqq#ffff" -w '%{url.host}+%{url.path}+%{url.scheme}+%{url.user}+%{url.password}+%{url
H A Dtest12217 --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 Dtest97062url":"http://%HOSTIP:%HTTPPORT/%TESTNUMBER","url.fragment":null,"url.host":"127.0.0.1","url.option…
H A Dtest97263url":"http://%HOSTIP:%HTTPPORT/%TESTNUMBER","url.fragment":null,"url.host":"127.0.0.1","url.option…
/curl/docs/cmdline-opts/
H A Durl-query.md4 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 Dconfig.yml8 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 Dtool_xattr.c47 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 Dunit1621.c47 char *stripcredentials(const char *url);
70 const char *url = tests[i].input;
71 char *stripped = stripcredentials(url);

Completed in 59 milliseconds

1234567