curl/tests/http
Stefan Eissing 40d57c9f58
hostip: resolve user supplied ip addresses
When a user supplied an ip address in a URL as hostname, use that even
when address family restrictions like -4 or -6 are set.

Add test_10_15/16 to verify with a local proxy server.

Fixes #21146
Reported-by: Terrance Wong

How:
- cf-dns: on see the hostname is an ip(v6) address, add the respective
  A/AAAA to the dns query bits
- cf-dns/hostip: only hand out addrinfos for a family if that family
  is part of the DNS queries. That prevents for example ipv6 addresses
  to show up from dns cache entries
- change cf-ip-happy to no longer check for "ip_version" and instead
  use all addresses that cf-dns hands out

Closes #21295
2026-04-13 19:52:30 +02:00
..
testenv hostip: resolve user supplied ip addresses 2026-04-13 19:52:30 +02:00
.gitignore tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
CMakeLists.txt cmake: update a comment 2025-12-12 13:09:52 +01:00
config.ini.in pytest: add tests using sshd 2025-12-12 11:58:57 +01:00
conftest.py tests: make whitespace between functions and classes consistent 2026-04-08 10:28:05 -07:00
Makefile.am pytest: adding support for dnsd test server 2026-04-10 14:29:29 +02:00
requirements.txt tests/http: bump cryptography from 46.0.6 to 46.0.7 2026-04-09 02:13:34 +02:00
scorecard.py tests: make whitespace between functions and classes consistent 2026-04-08 10:28:05 -07:00
test_01_basic.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_02_download.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_03_goaway.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_04_stuttered.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_05_errors.py tests/http: add abrupt server close test 2026-04-10 15:58:39 +02:00
test_06_eyeballs.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_07_upload.py pytest: switch off h3 for pytest_07_22 2026-04-10 12:39:51 +02:00
test_08_caddy.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_09_push.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_10_proxy.py hostip: resolve user supplied ip addresses 2026-04-13 19:52:30 +02:00
test_11_unix.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_12_reuse.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_13_proxy_auth.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_14_auth.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_15_tracing.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_16_info.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_17_ssl_use.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_18_methods.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_19_shutdown.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_20_websockets.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_21_resolve.py pytest: test threaded resolver 2026-04-11 17:31:56 +02:00
test_30_vsftpd.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_31_vsftpds.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_32_ftps_vsftpd.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_40_socks.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_50_scp.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
test_51_sftp.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00