• Home
  • Raw
  • Download

Lines Matching +full:data +full:- +full:urls

2 # -*- coding: utf-8 -*-
23 # SPDX-License-Identifier: curl
48 env.make_data_file(indir=env.gen_dir, fname="data-100k", fsize=100*1024)
49 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024)
64 url = f'http://localhost:{env.http_port}/data.json'
65 r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
70 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
71 reason='curl lacks HTTPS-proxy support')
77 url = f'http://localhost:{env.http_port}/data.json'
79 r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
88 ['data.json', 5],
89 ['data-100k', 5],
90 ['data-1m', 2]
101 url = f'http://localhost:{env.http_port}/curltest/echo?id=[0-{count-1}]'
103 r = curl.http_upload(urls=[url], data=f'@{srcfile}', alpn_proto=proto,
115 url = f'http://localhost:{env.http_port}/data.json'
117 r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
122 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
123 reason='curl lacks HTTPS-proxy support')
127 url = f'http://localhost:{env.http_port}/data.json'
129 r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
138 url = f'https://localhost:{env.https_port}/data.json'
140 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True,
146 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
147 reason='curl lacks HTTPS-proxy support')
155 url = f'https://localhost:{env.https_port}/data.json?[0-0]'
157 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True,
163 srcfile = os.path.join(httpd.docs_dir, 'data.json')
172 ['data.json', 100],
173 ['data-100k', 20],
174 ['data-1m', 5]
183 url = f'https://localhost:{env.https_port}/{fname}?[0-{count-1}]'
185 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True,
202 ['data.json', 50],
203 ['data-100k', 20],
204 ['data-1m', 5]
214 url = f'https://localhost:{env.https_port}/curltest/echo?id=[0-{count-1}]'
216 r = curl.http_upload(urls=[url], data=f'@{srcfile}', alpn_proto=proto,
234 url1 = f'https://localhost:{env.https_port}/data.json'
235 url2 = f'http://localhost:{env.http_port}/data.json'
237 r = curl.http_download(urls=[url1, url2], alpn_proto='http/1.1', with_stats=True,
254 # url twice via https: proxy separated with '--next', will reuse
258 url = f'https://localhost:{env.https_port}/data.json'
260 r1 = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
265 # get the args, duplicate separated with '--next'
267 x2_args.append('--next')
269 r2 = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
277 …@pytest.mark.skipif(condition=not Env.curl_uses_lib('openssl'), reason="tls13-ciphers not supporte…
279 # different --proxy-tls13-ciphers, no reuse of connection for https:
283 url = f'https://localhost:{env.https_port}/data.json'
285 r1 = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
290 # get the args, duplicate separated with '--next'
292 x2_args.append('--next')
294 x2_args.extend(['--proxy-tls13-ciphers', 'TLS_AES_128_GCM_SHA256'])
295 r2 = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
303 …@pytest.mark.skipif(condition=not Env.curl_uses_lib('openssl'), reason="tls13-ciphers not supporte…
305 # different --proxy-tls13-ciphers, no reuse of connection for http:
309 url = f'http://localhost:{env.http_port}/data.json'
311 r1 = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
316 # get the args, duplicate separated with '--next'
318 x2_args.append('--next')
320 x2_args.extend(['--proxy-tls13-ciphers', 'TLS_AES_128_GCM_SHA256'])
321 r2 = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
329 …@pytest.mark.skipif(condition=not Env.curl_uses_lib('openssl'), reason="tls13-ciphers not supporte…
331 # different --tls13-ciphers on https: same proxy config
335 url = f'https://localhost:{env.https_port}/data.json'
337 r1 = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
342 # get the args, duplicate separated with '--next'
344 x2_args.append('--next')
346 x2_args.extend(['--tls13-ciphers', 'TLS_AES_128_GCM_SHA256'])
347 r2 = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,
353 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
354 reason='curl lacks HTTPS-proxy support')
361 url = f'http://localhost:{env.http_port}/data.json'
363 r = curl.http_download(urls=[url], alpn_proto='http/1.1', with_stats=True,