Skip to content

ctest: Restore support for http redirects during Submit step

After CDash PR 1519 introduced HTTP status codes greater than 200 for various error cases, CMake MR !8648 (merged) modified CTest's submit handler to check the status returned by CDash and throw an error when this status is not equal to 200.

That change had the unintended side effect of causing CTest submissions to fail when uploading results to a URL that returns a redirect status code (3xx). Fix this by configuring cURL to follow the redirect. The status cURL reports to CTest is now 200 instead of 3xx when CDash is located behind a redirect.

Fixes: #25159 (closed)
Backport: release

Edited by Brad King

Merge request reports