curl/tests/http/testenv
Stefan Eissing 5ed7b5b01b
alt-svc: more flexibility on same destination
When the Alt-Svc points to the same host and port, add the destination
ALPN to the `wanted` versions and set it also as the `preferred` version
in negotiations.

This allows Alt-Svc for h3 to point to h2 and have it tried first. Also,
this allows Alt-Svc to say http/1.1 is preferred and changes the ALPN
protocol ordering for the TLS handshake.

Add tests in various combination to verify this works.

Reported-by: yushicheng7788 on github
Fixes #19740
Closes #19874
2025-12-09 15:59:09 +01:00
..
mod_curltest pytest: improve stragglers 2025-12-02 17:04:20 +01:00
__init__.py pytest: add SOCKS tests and scoring 2025-07-23 18:12:31 +02:00
caddy.py badwords: fix issues found in tests 2025-11-17 13:30:35 +01:00
certs.py vtls: fix CURLOPT_CAPATH use 2025-11-08 17:02:54 +01:00
client.py tests: merge clients into libtests, drop duplicate code 2025-07-30 02:38:13 +02:00
curl.py alt-svc: more flexibility on same destination 2025-12-09 15:59:09 +01:00
dante.py pytest: use dante-server in CI 2025-07-29 15:02:30 +02:00
env.py pytest fixes and improvements 2025-11-17 08:02:52 +01:00
httpd.py badwords: fix issues found in tests 2025-11-17 13:30:35 +01:00
nghttpx.py pytest: fix and improve reliability 2025-12-02 17:15:36 +01:00
ports.py pytest: bind to localhost 2025-09-10 00:55:07 +02:00
vsftpd.py badwords: fix issues found in tests 2025-11-17 13:30:35 +01:00
ws_echo_server.py tests: change Python code style to pass ruff checks 2024-10-04 14:02:05 -07:00