ctest: Restore support for http redirects during Submit step in CMake 3.26
Backport !8782 (merged) to the CMake 3.26 release branch since it fixes !8648 (merged) which was backported to 3.26 too.
Fixes: #25159 (closed)
A GitLab update will be applied on May 23, between 8am and 10am, EDT (UTC-04:00). This site may have intermittent delays during that time.
Backport !8782 (merged) to the CMake 3.26 release branch since it fixes !8648 (merged) which was backported to 3.26 too.
Fixes: #25159 (closed)