Home
last modified time | relevance | path

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

1234

/curl/tests/
H A Dserverhelp.pm105 my $proto;
111 $proto = $1;
117 $proto = $1;
124 return($proto, $ipvnum, $idnum);
134 $proto = uc($proto) if($proto);
135 die "unsupported protocol: '$proto'" unless($proto &&
238 die "unsupported protocol: '$proto'" unless($proto &&
250 die "unsupported protocol: '$proto'" unless($proto &&
262 die "unsupported protocol: '$proto'" unless($proto &&
263 (lc($proto) =~ /^ftps?$/));
[all …]
H A Dservers.pm456 my ($proto) = @_;
473 my $proto = $1;
1253 my $proto="http/2";
1314 my $proto="http/3";
1663 my $proto = 'tftp';
1739 my $proto = 'rtsp';
1815 my $proto = 'ssh';
1937 my $proto = 'mqtt';
2060 my $proto = "dict";
2121 my $proto = "smb";
[all …]
H A Dprocesshelp.pm362 my ($piddir, $proto, $ipvnum, $idnum, $verbose, $which) = @_;
367 return if($proto !~ /^(ftp|imap|pop3|smtp)$/);
372 $server = servername_id($proto, $ipvnum, $idnum) if($verbose);
375 $pidfile = mainsockf_pidfilename($piddir, $proto, $ipvnum, $idnum);
379 ($proto eq 'ftp')?'ctrl':'filt', $pid) if($verbose);
386 return if($proto ne 'ftp');
389 $pidfile = datasockf_pidfilename($piddir, $proto, $ipvnum, $idnum);
407 for my $proto (('ftp', 'imap', 'pop3', 'smtp')) {
410 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:";
267 print uc($proto) ." server (stunnel $ver_major.$ver_minor)\n";
323 print uc($proto) ." server (stunnel $ver_major.$ver_minor)\n";
H A Dhttp-server.pl50 my $proto = 'http'; # protocol the http server speaks
162 $pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
165 $portfile = server_portfilename($piddir, $proto, $ipvnum, $idnum);
171 $logfile = server_logfilename($logdir, $proto, $ipvnum, $idnum);
/curl/tests/http/
H A Dtest_07_upload.py337 proto = 'h2'
358 proto = 'h2'
380 proto = 'h2'
548 r = client.run(['-V', proto, url])
551 elif proto == 'h2':
553 elif proto == 'h3':
571 if proto == 'h2' or proto == 'h3':
588 if proto == 'h2' or proto == 'h3':
691 port = env.port_for(proto)
692 if proto != 'h3':
[all …]
H A Dtest_02_download.py106 if proto == 'http/1.1':
126 if proto == 'http/1.1':
378 if proto in ['h2', 'h3']:
407 if proto in ['h2', 'h3']:
436 if proto in ['h2', 'h3']:
599 port = env.port_for(proto)
600 if proto != 'h3':
611 '-V', proto, url
629 if proto == 'http/1.1':
631 elif proto == 'h2':
[all …]
H A Dtest_14_auth.py50 if proto == 'h3' and not env.have_h3():
54 r = curl.http_download(urls=[url], alpn_proto=proto)
59 def test_14_02_digest_get_auth(self, env: Env, httpd, nghttpx, repeat, proto): argument
60 if proto == 'h3' and not env.have_h3():
64 r = curl.http_download(urls=[url], alpn_proto=proto, extra_args=[
72 if proto == 'h3' and not env.have_h3():
85 if proto == 'h3' and not env.have_h3():
102 if proto == 'h3' and not env.have_h3():
104 if proto == 'h3' and not env.curl_uses_lib('ngtcp2'):
122 if proto == 'h3' and not env.have_h3():
[all …]
H A Dtest_05_errors.py50 proto): argument
51 if proto == 'h3' and not env.have_h3():
53 if proto == 'h3' and env.curl_uses_lib('msh3'):
73 proto): argument
74 if proto == 'h3' and not env.have_h3():
76 if proto == 'h3' and env.curl_uses_lib('msh3'):
97 proto = 'http/1.1'
99 r = curl.http_download(urls=[urln], alpn_proto=proto)
102 proto = 'h2'
121 if proto == 'h3' and not env.have_h3():
[all …]
H A Dtest_08_caddy.py73 if proto == 'h3' and not env.have_h3_curl():
86 if proto == 'h3' and not env.have_h3_curl():
100 if proto == 'h3' and not env.have_h3_curl():
111 if proto == 'http/1.1':
123 if proto == 'h3' and not env.have_h3_curl():
139 if proto == 'h3' and not env.have_h3_curl():
155 if proto == 'h3' and not env.have_h3_curl():
169 if proto == 'http/1.1':
178 if proto == 'h3' and not env.have_h3():
197 if proto == 'h3' and not env.have_h3():
[all …]
H A Dtest_17_ssl_use.py54 proto = 'http/1.1'
65 proto = 'http/1.1'
106 if proto == 'h3' and not env.have_h3():
114 if proto != 'h3': # we proxy h3
121 if proto == 'h3' and not env.have_h3():
132 if proto != 'h3': # we proxy h3
147 if proto == 'h3' and not env.have_h3():
155 if proto != 'h3': # we proxy h3
170 if proto != 'h3': # we proxy h3
210 proto = 'http/1.1'
[all …]
H A Dtest_04_stuttered.py51 proto): argument
52 if proto == 'h3' and not env.have_h3():
59 r = curl.http_download(urls=[urln], alpn_proto=proto)
67 httpd, nghttpx, repeat, proto): argument
68 if proto == 'h3' and not env.have_h3():
77 r = curl.http_download(urls=[url1, urln], alpn_proto=proto,
89 def test_04_03_1000_10_1(self, env: Env, httpd, nghttpx, repeat, proto): argument
90 if proto == 'h3' and not env.have_h3():
99 r = curl.http_download(urls=[url1, urln], alpn_proto=proto,
112 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_16_info.py55 def test_16_01_info_download(self, env: Env, httpd, nghttpx, repeat, proto): argument
56 if proto == 'h3' and not env.have_h3():
61 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True)
63 remote_port=env.port_for(alpn_proto=proto),
71 if proto == 'h3' and not env.have_h3():
80 remote_port=env.port_for(alpn_proto=proto),
86 def test_16_03_info_upload(self, env: Env, httpd, nghttpx, proto, repeat): argument
87 if proto == 'h3' and not env.have_h3():
94 r = curl.http_upload(urls=[url], data=f'@{fdata}', alpn_proto=proto,
100 remote_port=env.port_for(alpn_proto=proto),
[all …]
H A Dtest_19_shutdown.py56 def test_19_01_check_tcp_rst(self, env: Env, httpd, repeat, proto): argument
61 r = curl.http_download(urls=[url], alpn_proto=proto, with_tcpdump=True, extra_args=[
71 def test_19_02_check_shutdown(self, env: Env, httpd, repeat, proto): argument
88 def test_19_03_shutdown_by_server(self, env: Env, httpd, repeat, proto): argument
98 r = curl.http_download(urls=[url], alpn_proto=proto)
107 def test_19_04_shutdown_by_curl(self, env: Env, httpd, proto, repeat): argument
120 '-n', f'{count}', '-f', '-V', proto, url
130 def test_19_05_event_shutdown_by_server(self, env: Env, httpd, proto, repeat): argument
143 r = curl.http_download(urls=[url], alpn_proto=proto, extra_args=[
158 def test_19_06_check_shutdown(self, env: Env, httpd, nghttpx, repeat, proto): argument
[all …]
H A Dtest_03_goaway.py50 proto = 'h2'
59 self.r = curl.http_download(urls=[urln], alpn_proto=proto)
82 proto = 'h3'
83 if proto == 'h3' and env.curl_uses_lib('msh3'):
85 if proto == 'h3' and env.curl_uses_ossl_quic():
95 self.r = curl.http_download(urls=[urln], alpn_proto=proto)
116 proto = 'http/1.1'
126 self.r = curl.http_download(urls=[urln], alpn_proto=proto, extra_args=[
H A Dtest_18_methods.py51 def test_18_01_delete(self, env: Env, httpd, nghttpx, repeat, proto): argument
52 if proto == 'h3' and not env.have_h3():
57 r = curl.http_delete(urls=[url], alpn_proto=proto)
65 proto = 'h2'
70 r = curl.http_delete(urls=[url], alpn_proto=proto)
/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.c313 DEBUGASSERT(proto == proto_token(proto)); /* Ensure it is tokenized. */ in protoset_index()
316 if(proto == *p) in protoset_index()
322 static void protoset_set(const char **protoset, const char *proto) in protoset_set() argument
324 if(proto) { in protoset_set()
325 size_t n = protoset_index(protoset, proto); in protoset_set()
329 protoset[n] = proto; in protoset_set()
338 if(proto) { in protoset_clear()
339 size_t n = protoset_index(protoset, proto); in protoset_clear()
371 size_t proto; in proto2num() local
467 for(proto = 0; protoset[proto] && !result; proto++) in proto2num()
[all …]

Completed in 35 milliseconds

1234