Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 85) sorted by relevance

1234

/curl/tests/
H A Dserverhelp.pm102 my $proto;
108 $proto = $1;
114 $proto = $1;
121 return($proto, $ipvnum, $idnum);
131 $proto = uc($proto) if($proto);
132 die "unsupported protocol: '$proto'" unless($proto &&
235 die "unsupported protocol: '$proto'" unless($proto &&
247 die "unsupported protocol: '$proto'" unless($proto &&
259 die "unsupported protocol: '$proto'" unless($proto &&
260 (lc($proto) =~ /^ftps?$/));
[all …]
H A Dservers.pm437 my ($proto) = @_;
453 my $proto = $1;
1211 my $proto="http/2";
1272 my $proto="http/3";
1621 my $proto = 'tftp';
1697 my $proto = 'rtsp';
1773 my $proto = 'ssh';
1895 my $proto = 'mqtt';
2019 my $proto = "dict";
2080 my $proto = "smb";
[all …]
H A Dprocesshelp.pm342 my ($piddir, $proto, $ipvnum, $idnum, $verbose, $which) = @_;
347 return if($proto !~ /^(ftp|imap|pop3|smtp)$/);
352 $server = servername_id($proto, $ipvnum, $idnum) if($verbose);
355 $pidfile = mainsockf_pidfilename($piddir, $proto, $ipvnum, $idnum);
359 ($proto eq 'ftp')?'ctrl':'filt', $pid) if($verbose);
366 return if($proto ne 'ftp');
369 $pidfile = datasockf_pidfilename($piddir, $proto, $ipvnum, $idnum);
387 for my $proto (('ftp', 'imap', 'pop3', 'smtp')) {
390 killsockfilters($piddir, $proto, $ipvnum, $idnum, $verbose);
H A Dsecureserver.pl71 my $proto = 'https'; # default secure server protocol
104 $proto = $ARGV[1];
190 $pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
193 $logfile = server_logfilename($logdir, $proto, $ipvnum, $idnum);
196 $conffile = "$piddir/${proto}_stunnel.conf";
202 my $ssltext = uc($proto) ." SSL/TLS:";
263 print uc($proto) ." server (stunnel $ver_major.$ver_minor)\n";
319 print uc($proto) ." server (stunnel $ver_major.$ver_minor)\n";
/curl/tests/http/
H A Dtest_02_download.py61 if proto == 'h3' and not env.have_h3():
71 if proto == 'h3' and not env.have_h3():
82 if proto == 'h3' and not env.have_h3():
93 if proto == 'h3' and not env.have_h3():
102 if proto == 'http/1.1':
113 if proto == 'h3' and not env.have_h3():
122 if proto == 'http/1.1':
371 if proto in ['h2', 'h3']:
402 if proto in ['h2', 'h3']:
433 if proto in ['h2', 'h3']:
[all …]
H A Dtest_07_upload.py57 if proto == 'h3' and not env.have_h3():
72 if proto == 'h3' and not env.have_h3():
88 if proto == 'h3' and not env.have_h3():
105 if proto == 'h3' and not env.have_h3():
124 if proto == 'h3' and not env.have_h3():
143 if proto == 'h3' and not env.have_h3():
161 if proto == 'h3' and not env.have_h3():
208 exp_exit = 92 if proto == 'h2' else 95
268 proto = 'h2'
289 proto = 'h2'
[all …]
H A Dtest_14_auth.py52 if proto == 'h3' and not env.have_h3():
56 r = curl.http_download(urls=[url], alpn_proto=proto)
61 def test_14_02_digest_get_auth(self, env: Env, httpd, nghttpx, repeat, proto): argument
62 if proto == 'h3' and not env.have_h3():
66 r = curl.http_download(urls=[url], alpn_proto=proto, extra_args=[
74 if proto == 'h3' and not env.have_h3():
87 if proto == 'h3' and not env.have_h3():
104 if proto == 'h3' and not env.have_h3():
106 if proto == 'h3' and not env.curl_uses_lib('ngtcp2'):
124 if proto == 'h3' and not env.have_h3():
[all …]
H A Dtest_08_caddy.py68 if proto == 'h3' and not env.have_h3_curl():
70 if proto == 'h3' and env.curl_uses_lib('msh3'):
81 if proto == 'h3' and not env.have_h3_curl():
83 if proto == 'h3' and env.curl_uses_lib('msh3'):
95 if proto == 'h3' and not env.have_h3_curl():
106 if proto == 'http/1.1':
118 if proto == 'h3' and not env.have_h3_curl():
134 if proto == 'h3' and not env.have_h3_curl():
150 if proto == 'h3' and not env.have_h3_curl():
164 if proto == 'http/1.1':
[all …]
H A Dtest_05_errors.py52 proto): argument
53 if proto == 'h3' and not env.have_h3():
55 if proto == 'h3' and env.curl_uses_lib('msh3'):
75 proto): argument
76 if proto == 'h3' and not env.have_h3():
78 if proto == 'h3' and env.curl_uses_lib('msh3'):
99 proto = 'http/1.1'
104 proto = 'h2'
123 if proto == 'h3' and not env.have_h3():
125 count = 10 if proto == 'h2' else 1
[all …]
H A Dtest_17_ssl_use.py51 proto = 'http/1.1'
62 proto = 'http/1.1'
109 if proto == 'h3' and not env.have_h3():
117 if proto != 'h3': # we proxy h3
124 if proto == 'h3' and not env.have_h3():
137 if proto != 'h3': # we proxy h3
152 if proto == 'h3' and not env.have_h3():
160 if proto != 'h3': # we proxy h3
167 if proto == 'h3' and not env.have_h3():
175 if proto != 'h3': # we proxy h3
[all …]
H A Dscorecard.py213 props['serial'] = self.transfer_serial(url=url, proto=proto,
243 proto=proto, count=count)
260 proto=proto, count=count)
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,
304 '100': self.do_requests(url=url, proto=proto, count=count,
369 elif proto == 'h1' or proto == 'http/1.1':
387 score['handshakes'] = self.handshakes(proto=proto)
[all …]
H A Dtest_04_stuttered.py52 proto): argument
53 if proto == 'h3' and not env.have_h3():
60 r = curl.http_download(urls=[urln], alpn_proto=proto)
68 httpd, nghttpx, repeat, proto): argument
69 if proto == 'h3' and not env.have_h3():
78 r = curl.http_download(urls=[url1, urln], alpn_proto=proto,
90 def test_04_03_1000_10_1(self, env: Env, httpd, nghttpx, repeat, proto): argument
91 if proto == 'h3' and not env.have_h3():
100 r = curl.http_download(urls=[url1, urln], alpn_proto=proto,
113 if proto == 'h3' and not env.have_h3():
[all …]
H A Dtest_10_proxy.py74 if proto == 'h2' and not env.curl_uses_lib('nghttp2'):
78 xargs = curl.get_proxy_args(proto=proto)
94 def test_10_02_proxys_up(self, env: Env, httpd, nghttpx, proto, argument
96 if proto == 'h2' and not env.curl_uses_lib('nghttp2'):
102 xargs = curl.get_proxy_args(proto=proto)
156 xargs = curl.get_proxy_args(tunnel=True, proto=tunnel)
184 xargs = curl.get_proxy_args(tunnel=True, proto=tunnel)
215 xargs = curl.get_proxy_args(tunnel=True, proto=tunnel)
236 xargs = curl.get_proxy_args(tunnel=True, proto=tunnel)
358 if proto == 'h2' and not env.curl_uses_lib('nghttp2'):
[all …]
H A Dtest_03_goaway.py51 proto = 'h2'
60 self.r = curl.http_download(urls=[urln], alpn_proto=proto)
83 proto = 'h3'
84 if proto == 'h3' and env.curl_uses_lib('msh3'):
86 if proto == 'h3' and env.curl_uses_lib('quiche'):
88 if proto == 'h3' and env.curl_uses_ossl_quic():
98 self.r = curl.http_download(urls=[urln], alpn_proto=proto)
119 proto = 'http/1.1'
129 self.r = curl.http_download(urls=[urln], alpn_proto=proto, extra_args=[
H A Dtest_16_info.py58 def test_16_01_info_download(self, env: Env, httpd, nghttpx, repeat, proto): argument
59 if proto == 'h3' and not env.have_h3():
64 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True)
71 def test_16_02_info_302_download(self, env: Env, httpd, nghttpx, repeat, proto): argument
72 if proto == 'h3' and not env.have_h3():
77 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True, extra_args=[
85 def test_16_03_info_upload(self, env: Env, httpd, nghttpx, proto, repeat): argument
86 if proto == 'h3' and not env.have_h3():
93 r = curl.http_upload(urls=[url], data=f'@{fdata}', alpn_proto=proto,
104 def test_16_04_info_http_download(self, env: Env, httpd, nghttpx, repeat, proto): argument
[all …]
H A Dtest_18_methods.py58 def test_18_01_delete(self, env: Env, httpd, nghttpx, repeat, proto): argument
59 if proto == 'h3' and not env.have_h3():
64 r = curl.http_delete(urls=[url], alpn_proto=proto)
72 proto = 'h2'
77 r = curl.http_delete(urls=[url], alpn_proto=proto)
H A Dtest_12_reuse.py46 httpd, nghttpx, repeat, proto): argument
55 r = curl.http_download(urls=[urln], alpn_proto=proto)
66 httpd, nghttpx, repeat, proto): argument
75 r = curl.http_download(urls=[urln], alpn_proto=proto, extra_args=[
/curl/docs/cmdline-opts/
H A Dproto-redir.md4 Long: proto-redir
11 - proto
13 - --proto-redir =http,https $URL
16 # `--proto-redir`
18 Limit what protocols to allow on redirects. Protocols denied by --proto are
19 not overridden by this option. See --proto for how protocols are represented.
23 curl --proto-redir -all,http,https http://example.com
H A Dproto-default.md4 Long: proto-default
11 - proto
12 - proto-redir
14 - --proto-default https ftp.example.com
17 # `--proto-default`
H A Dproto.md4 Long: proto
11 - proto-redir
12 - proto-default
14 - --proto =http,https,sftp $URL
17 # `--proto`
37 For example: --proto -ftps uses the default protocols, but disables ftps
39 --proto -all,https,+http only enables http and https
41 --proto =http,https also only enables http and https
/curl/tests/libtest/
H A Dlib1597.c42 const char *const *proto; in test() local
85 for(proto = curlinfo->protocols; *proto; proto++) { in test()
91 n += msnprintf(protolist + n, sizeof(protolist) - n, ",%s", *proto); in test()
92 if(curl_strequal(*proto, "http")) in test()
94 if(curl_strequal(*proto, "https")) in test()
/curl/tests/data/
H A Dtest12457 --proto
8 --proto-redir
35 --proto deny must override --proto-redir allow
38 --location --proto +all,-ftp --proto-redir -all,+ftp http://%HOSTIP:%HTTPPORT/%TESTNUMBER
H A Dtest14746 --proto
27 --proto -all disables all protocols
30 --proto -all http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER
H A Dtest11465 --proto-default
25 --proto-default file
28 --proto-default file %PWD/%LOGDIR/test%TESTNUMBER.txt
/curl/src/
H A Dtool_paramhlp.c317 DEBUGASSERT(proto == proto_token(proto)); /* Ensure it is tokenized. */ in protoset_index()
320 if(proto == *p) in protoset_index()
326 static void protoset_set(const char **protoset, const char *proto) in protoset_set() argument
328 if(proto) { in protoset_set()
329 size_t n = protoset_index(protoset, proto); in protoset_set()
333 protoset[n] = proto; in protoset_set()
342 if(proto) { in protoset_clear()
343 size_t n = protoset_index(protoset, proto); in protoset_clear()
375 size_t proto; in proto2num() local
471 for(proto = 0; protoset[proto] && !result; proto++) in proto2num()
[all …]

Completed in 72 milliseconds

1234