/curl/tests/http/ |
H A D | conftest.py | 37 def env(pytestconfig) -> Env: function 45 if env.setup_incomplete(): 48 env.setup() 49 if not env.make_clients(): 51 return env 59 def httpd(env) -> Httpd: argument 60 httpd = Httpd(env=env) 72 nghttpx = NghttpxQuic(env=env) 73 if env.have_h3(): 81 nghttpx = NghttpxFwd(env=env) [all …]
|
H A D | test_07_upload.py | 62 curl = CurlClient(env=env) 77 curl = CurlClient(env=env) 94 curl = CurlClient(env=env) 112 curl = CurlClient(env=env) 130 curl = CurlClient(env=env) 149 curl = CurlClient(env=env) 168 curl = CurlClient(env=env) 187 curl = CurlClient(env=env) 203 curl = CurlClient(env=env) 220 curl = CurlClient(env=env) [all …]
|
H A D | test_17_ssl_use.py | 45 if env.have_h3(): 52 curl = CurlClient(env=env) 66 if env.curl_uses_lib('gnutls'): 72 if env.curl_uses_lib('wolfssl'): 83 curl = CurlClient(env=env) 107 if env.curl_uses_lib('gnutls'): 111 curl = CurlClient(env=env) 128 curl = CurlClient(env=env) 154 curl = CurlClient(env=env) 169 curl = CurlClient(env=env) [all …]
|
H A D | test_02_download.py | 63 curl = CurlClient(env=env) 73 curl = CurlClient(env=env) 84 curl = CurlClient(env=env) 96 curl = CurlClient(env=env) 118 curl = CurlClient(env=env) 137 curl = CurlClient(env=env) 151 curl = CurlClient(env=env) 170 curl = CurlClient(env=env) 187 curl = CurlClient(env=env) 198 curl = CurlClient(env=env) [all …]
|
H A D | test_14_auth.py | 42 def _class_scope(self, env, httpd, nghttpx): argument 43 if env.have_h3(): 45 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024) 52 if proto == 'h3' and not env.have_h3(): 54 curl = CurlClient(env=env) 62 if proto == 'h3' and not env.have_h3(): 64 curl = CurlClient(env=env) 77 curl = CurlClient(env=env) 91 curl = CurlClient(env=env) 112 curl = CurlClient(env=env) [all …]
|
H A D | test_01_basic.py | 40 def _class_scope(self, env, nghttpx): argument 41 if env.have_h3(): 46 curl = CurlClient(env=env) 50 assert r.json['server'] == env.domain1 55 curl = CurlClient(env=env) 59 assert r.json['server'] == env.domain1 64 curl = CurlClient(env=env) 68 assert r.json['server'] == env.domain1 73 curl = CurlClient(env=env) 82 curl = CurlClient(env=env) [all …]
|
H A D | test_08_caddy.py | 42 def caddy(self, env): argument 43 caddy = Caddy(env=env) 59 def _class_scope(self, env, caddy): argument 72 curl = CurlClient(env=env) 86 curl = CurlClient(env=env) 100 curl = CurlClient(env=env) 123 curl = CurlClient(env=env) 139 curl = CurlClient(env=env) 158 curl = CurlClient(env=env) 174 if proto == 'h3' and not env.have_h3(): [all …]
|
H A D | test_20_websockets.py | 45 def check_alive(self, env, timeout=5): argument 46 curl = CurlClient(env=env) 65 def ws_echo(self, env): argument 77 assert self.check_alive(env) 82 curl = CurlClient(env=env) 89 client = LocalClient(env=env, name='ws-pingpong') 99 client = LocalClient(env=env, name='ws-pingpong') 108 client = LocalClient(env=env, name='ws-data') 117 client = LocalClient(env=env, name='ws-data') 126 client = LocalClient(env=env, name='ws-data') [all …]
|
H A D | test_06_eyeballs.py | 41 def _class_scope(self, env, httpd, nghttpx): argument 42 if env.have_h3(): 49 def test_06_01_h3_only(self, env: Env, httpd, nghttpx, repeat): 50 curl = CurlClient(env=env) 58 def test_06_02_h3_only(self, env: Env, httpd, nghttpx, repeat): 60 curl = CurlClient(env=env) 69 curl = CurlClient(env=env) 79 curl = CurlClient(env=env) 87 curl = CurlClient(env=env) 96 curl = CurlClient(env=env) [all …]
|
H A D | test_05_errors.py | 43 def _class_scope(self, env, httpd, nghttpx): argument 44 if env.have_h3(): 53 if proto == 'h3' and not env.have_h3(): 55 if proto == 'h3' and env.curl_uses_lib('msh3'): 58 curl = CurlClient(env=env) 76 if proto == 'h3' and not env.have_h3(): 81 curl = CurlClient(env=env) 98 curl = CurlClient(env=env) 123 if proto == 'h3' and not env.have_h3(): 126 curl = CurlClient(env=env) [all …]
|
H A D | test_18_methods.py | 43 def _class_scope(self, env, httpd, nghttpx): argument 44 if env.have_h3(): 50 def _class_scope(self, env, httpd): argument 52 env.make_data_file(indir=indir, fname="data-10k", fsize=10*1024) 53 env.make_data_file(indir=indir, fname="data-100k", fsize=100*1024) 54 env.make_data_file(indir=indir, fname="data-1m", fsize=1024*1024) 58 def test_18_01_delete(self, env: Env, httpd, nghttpx, repeat, proto): 59 if proto == 'h3' and not env.have_h3(): 62 curl = CurlClient(env=env) 71 def test_18_02_delete_h2_special(self, env: Env, httpd, nghttpx, repeat): [all …]
|
H A D | test_10_proxy.py | 63 curl = CurlClient(env=env) 76 curl = CurlClient(env=env) 100 curl = CurlClient(env=env) 114 curl = CurlClient(env=env) 126 curl = CurlClient(env=env) 137 curl = CurlClient(env=env) 154 curl = CurlClient(env=env) 182 curl = CurlClient(env=env) 213 curl = CurlClient(env=env) 233 curl = CurlClient(env=env) [all …]
|
H A D | test_13_proxy_auth.py | 45 def _class_scope(self, env, httpd, nghttpx_fwd): argument 46 if env.have_nghttpx(): 65 curl = CurlClient(env=env) 72 def test_13_02_proxy_auth(self, env: Env, httpd, repeat): 73 curl = CurlClient(env=env) 85 curl = CurlClient(env=env) 96 curl = CurlClient(env=env) 105 curl = CurlClient(env=env) 114 curl = CurlClient(env=env) 130 curl = CurlClient(env=env) [all …]
|
H A D | test_15_tracing.py | 40 def test_15_01_trace_defaults(self, env: Env, httpd): 41 curl = CurlClient(env=env) 51 def test_15_02_trace_ids(self, env: Env, httpd): 52 curl = CurlClient(env=env) 64 def test_15_03_trace_ids_time(self, env: Env, httpd): 65 curl = CurlClient(env=env) 77 def test_15_04_trace_all(self, env: Env, httpd): 78 curl = CurlClient(env=env) 96 def test_15_05_trace_all(self, env: Env, httpd): 97 curl = CurlClient(env=env)
|
H A D | test_30_vsftpd.py | 44 def vsftpd(self, env): argument 45 vsftpd = VsFTPD(env=env) 61 def _class_scope(self, env, vsftpd): argument 70 env.make_data_file(indir=env.gen_dir, fname="upload-1k", fsize=1024) 71 env.make_data_file(indir=env.gen_dir, fname="upload-100k", fsize=100*1024) 72 env.make_data_file(indir=env.gen_dir, fname="upload-1m", fsize=1024*1024) 75 curl = CurlClient(env=env) 87 curl = CurlClient(env=env) 99 curl = CurlClient(env=env) 111 curl = CurlClient(env=env) [all …]
|
H A D | test_31_vsftpds.py | 46 def vsftpds(self, env): argument 49 vsftpds = VsFTPD(env=env, with_ssl=True) 68 def _class_scope(self, env, vsftpds): argument 77 env.make_data_file(indir=env.gen_dir, fname="upload-1k", fsize=1024) 78 env.make_data_file(indir=env.gen_dir, fname="upload-100k", fsize=100*1024) 79 env.make_data_file(indir=env.gen_dir, fname="upload-1m", fsize=1024*1024) 82 curl = CurlClient(env=env) 94 curl = CurlClient(env=env) 106 curl = CurlClient(env=env) 118 curl = CurlClient(env=env) [all …]
|
H A D | test_16_info.py | 43 def _class_scope(self, env, httpd, nghttpx): argument 44 if env.have_h3(): 50 def _class_scope(self, env, httpd): argument 59 if proto == 'h3' and not env.have_h3(): 62 curl = CurlClient(env=env) 72 if proto == 'h3' and not env.have_h3(): 75 curl = CurlClient(env=env) 86 if proto == 'h3' and not env.have_h3(): 89 fdata = os.path.join(env.gen_dir, 'data-100k') 91 curl = CurlClient(env=env) [all …]
|
H A D | test_04_stuttered.py | 43 def _class_scope(self, env, httpd, nghttpx): argument 44 if env.have_h3(): 53 if proto == 'h3' and not env.have_h3(): 56 curl = CurlClient(env=env) 67 def test_04_02_100_100_10(self, env: Env, 69 if proto == 'h3' and not env.have_h3(): 73 curl = CurlClient(env=env) 91 if proto == 'h3' and not env.have_h3(): 95 curl = CurlClient(env=env) 113 if proto == 'h3' and not env.have_h3(): [all …]
|
H A D | test_09_push.py | 40 def _class_scope(self, env, httpd): argument 44 env.make_data_file(indir=push_dir, fname="data1", fsize=1*1024) 45 env.make_data_file(indir=push_dir, fname="data2", fsize=1*1024) 46 env.make_data_file(indir=push_dir, fname="data3", fsize=1*1024) 47 httpd.set_extra_config(env.domain1, [ 64 def test_09_01_h2_early_hints(self, env: Env, httpd, repeat): 65 curl = CurlClient(env=env) 75 def test_09_02_h2_push(self, env: Env, httpd, repeat): 78 client = LocalClient(name='h2-serverpush', env=env)
|
H A D | test_03_goaway.py | 43 def _class_scope(self, env, httpd, nghttpx): argument 44 if env.have_h3(): 50 def test_03_01_h2_goaway(self, env: Env, httpd, nghttpx, repeat): 55 curl = CurlClient(env=env) 82 def test_03_02_h3_goaway(self, env: Env, httpd, nghttpx, repeat): 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(): 93 curl = CurlClient(env=env) 118 def test_03_03_h1_goaway(self, env: Env, httpd, nghttpx, repeat): [all …]
|
H A D | test_11_unix.py | 91 def uds_faker(self, env: Env) -> UDSFaker: 92 uds_path = os.path.join(env.gen_dir, 'uds_11.sock') 99 def test_11_01_unix_connect_http(self, env: Env, httpd, uds_faker, repeat): 100 curl = CurlClient(env=env) 110 def test_11_02_unix_connect_http(self, env: Env, httpd, uds_faker, repeat): 111 curl = CurlClient(env=env) 121 def test_11_03_unix_connect_quic(self, env: Env, httpd, uds_faker, repeat): 122 curl = CurlClient(env=env)
|
/curl/tests/libtest/ |
H A D | first.c | 93 char *env; in memory_tracking_init() local 95 env = curl_getenv("CURL_MEMDEBUG"); in memory_tracking_init() 96 if(env) { in memory_tracking_init() 100 env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; in memory_tracking_init() 101 strcpy(fname, env); in memory_tracking_init() 102 curl_free(env); in memory_tracking_init() 109 env = curl_getenv("CURL_MEMLIMIT"); in memory_tracking_init() 110 if(env) { in memory_tracking_init() 112 long num = strtol(env, &endptr, 10); in memory_tracking_init() 113 if((endptr != env) && (endptr == env + strlen(env)) && (num > 0)) in memory_tracking_init() [all …]
|
/curl/tests/http/testenv/ |
H A D | nghttpx.py | 35 from .env import Env 45 self.env = env 128 curl = CurlClient(env=self.env, run_dir=self._tmp_dir) 143 curl = CurlClient(env=self.env, run_dir=self._tmp_dir) 177 super().__init__(env=env, name='nghttpx-quic', port=env.h3_port) 193 self.env.get_credentials(self.env.domain1).pkey_file, 194 self.env.get_credentials(self.env.domain1).cert_file, 211 super().__init__(env=env, name='nghttpx-fwd', port=env.h2proxys_port) 227 self.env.get_credentials(self.env.proxy_domain).pkey_file, 237 curl = CurlClient(env=self.env, run_dir=self._tmp_dir) [all …]
|
H A D | vsftpd.py | 37 from .env import Env 46 self.env = env 47 self._cmd = env.vsftpd 51 self._port = self.env.ftps_port 54 self._port = self.env.ftp_port 69 return self.env.ftp_domain 133 curl = CurlClient(env=self.env, run_dir=self._tmp_dir) 146 curl = CurlClient(env=self.env, run_dir=self._tmp_dir) 161 env = {} 163 env[key] = val [all …]
|
/curl/src/ |
H A D | tool_main.c | 109 char *env; in memory_tracking_init() local 111 env = curl_getenv("CURL_MEMDEBUG"); in memory_tracking_init() 112 if(env) { in memory_tracking_init() 116 env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; in memory_tracking_init() 117 strcpy(fname, env); in memory_tracking_init() 118 curl_free(env); in memory_tracking_init() 125 env = curl_getenv("CURL_MEMLIMIT"); in memory_tracking_init() 126 if(env) { in memory_tracking_init() 128 long num = strtol(env, &endptr, 10); in memory_tracking_init() 129 if((endptr != env) && (endptr == env + strlen(env)) && (num > 0)) in memory_tracking_init() [all …]
|