curl/tests/http/clients
Stefan Eissing 71bb004c29
http: fail early when rewind of input failed when following redirects
When inspecting a possible follow HTTP request, the result of a rewind
of the upload data was ignored as it was not clear at that point in time
if the request would become a GET.

This initiated the followup, rewound again, which failed again and
terminated the follow up.

This was confusing to users as it was not clear of the follow up was
done or not.

Fix: fail the early rewind when the request is not converted to GET.

Fixes #17472
Closes #17474
Reported-by: Jeroen Ooms
2025-05-28 14:53:02 +02:00
..
.gitignore gitignore: restore explicit lists and fix them 2025-01-28 14:44:35 +01:00
CMakeLists.txt msvc: tidy up _CRT_*_NO_DEPRECATE definitions 2025-01-12 00:34:21 +01:00
h2-pausing.c tidy-up: prefer return over exit(), fix fallouts 2025-02-28 13:11:41 +01:00
h2-serverpush.c lib/src: white space edits to comply better with code style 2024-09-19 14:59:12 +02:00
h2-upgrade-extreme.c tidy-up: prefer return over exit(), fix fallouts 2025-02-28 13:11:41 +01:00
hx-download.c lib/src/docs/test: improve curl_easy_setopt() calls 2025-04-23 23:44:55 +02:00
hx-upload.c http: fail early when rewind of input failed when following redirects 2025-05-28 14:53:02 +02:00
Makefile.am checksrc: avoid extra runs in CI, enable more check locally, fix fallouts 2025-05-19 18:59:50 +02:00
Makefile.inc tidy-up: .gitignore lines mostly 2025-01-27 20:59:46 +01:00
tls-session-reuse.c lib/src/docs/test: improve curl_easy_setopt() calls 2025-04-23 23:44:55 +02:00
upload-pausing.c lib/src/docs/test: improve curl_easy_setopt() calls 2025-04-23 23:44:55 +02:00
ws-data.c tidy-up: delete, comment or scope C macros reported unused 2025-02-14 10:37:14 +01:00
ws-pingpong.c tidy-up: delete, comment or scope C macros reported unused 2025-02-14 10:37:14 +01:00