Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build curl 7.62.0 from source with --without-ssl to disable https support. Then try to GET a http URL that redirects to https via 301, e.g.:
--without-ssl
$ curl -v http://cmake.org ... < HTTP/1.1 301 Moved Permanently ... < Location: https://cmake.org/ ... * Closing connection 0 curl: (1) Unsupported protocol
It now fails because https is unsupported even though -L is not passed.
-L
$ curl -v http://cmake.org ... < HTTP/1.1 301 Moved Permanently ... < Location: https://cmake.org/ ... * Connection #0 to host cmake.org left intact
7.62.0. The failure bisects to commit 46e1640 from PR #3017.
The text was updated successfully, but these errors were encountered:
Indeed - a side-effect of parsing the URL already in Curl_follow() and not allowing "unknown" URL schemes there...
Curl_follow()
Sorry, something went wrong.
Curl_follow: accept non-supported schemes for "fake" redirects
2a701db
When not actually following the redirect and the target URL is only stored for later retrieval, curl always accepted "non-supported" schemes. This was a regression from 46e1640. Reported-by: Brad King Fixes #3210
2c5ec33
Confirmed, thanks!
No branches or pull requests
I did this
Build curl 7.62.0 from source with
--without-ssl
to disable https support. Then try to GET a http URL that redirects to https via 301, e.g.:It now fails because https is unsupported even though
-L
is not passed.I expected the following
curl/libcurl version
7.62.0. The failure bisects to commit 46e1640 from PR #3017.
The text was updated successfully, but these errors were encountered: