curl/tests/http
Stefan Eissing fbcf10ab84
progress: fx CURLINFO time reporting
Whack the times reported for a transfer (see
https://curl.se/libcurl/c/curl_easy_getinfo.html#TIMES) into order for
all variations of up-/download, http/ftp etc. Make sure they are
reported in the documented order.

There is still the *possibility* of PRETRANSFER being longer then
POSTTRANSFER, if a server sends a response before an upload is done.
POST is the time the first response byte is received, and PRE is the
time the last byte was sent by curl.

This may happen with more likelihood on HTTP/2 and 3 for a server
rejected upload. But for successful uploads, the answer will almost over
come afterwards.

Undo the previous twists in lib500.c tests, adjust pytest timeline
checks.

Fixes #21828
Reported-by: BazaarAcc32 on github
Closes #21843
2026-06-07 14:39:10 +02:00
..
testenv progress: fx CURLINFO time reporting 2026-06-07 14:39:10 +02:00
.gitignore tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
CMakeLists.txt HTTP/3: add proxy CONNECT and MASQUE CONNECT-UDP support (ngtcp2 QUIC) 2026-05-27 08:49:53 +02:00
config.ini.in HTTP/3: add proxy CONNECT and MASQUE CONNECT-UDP support (ngtcp2 QUIC) 2026-05-27 08:49:53 +02:00
conftest.py h3-proxy: fixes around H3 proxy 2026-05-28 14:41:27 +02:00
Makefile.am HTTP/3: add proxy CONNECT and MASQUE CONNECT-UDP support (ngtcp2 QUIC) 2026-05-27 08:49:53 +02:00
requirements.txt GHA: bump actions and pips 2026-05-01 21:19:22 +02:00
scorecard.py scorecard: add support for http: testing 2026-05-31 16:58:11 +02: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 tidy-up: miscellaneous 2026-06-01 22:33:57 +02: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 tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00
test_06_eyeballs.py dnsd: implement HTTPS-RR with alpn pref and no-default-alpn 2026-04-16 22:53:20 +02:00
test_07_upload.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_08_caddy.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_09_push.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_10_proxy.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_11_unix.py unix-sockets: ignore proxy settings 2026-05-16 18:49:46 +02: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 tidy-up: miscellaneous 2026-06-01 22:33:57 +02: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 tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_17_ssl_use.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_18_methods.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_19_shutdown.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_20_websockets.py tidy-up: miscellaneous 2026-05-27 16:53:57 +02:00
test_21_resolve.py pythonlint.sh: make it fail on error, fix ruff warnings in pytest 2026-05-13 22:59:36 +02:00
test_22_httpsrr.py pythonlint.sh: make it fail on error, fix ruff warnings in pytest 2026-05-13 22:59:36 +02:00
test_30_vsftpd.py tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00
test_31_vsftpds.py tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00
test_32_ftps_vsftpd.py tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00
test_40_socks.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_50_scp.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_51_sftp.py tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
test_60_h3_proxy.py tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00