Skip to content

7.62.0 breaks on redirects to unsupported protocol even if not followed #3210

@bradking

Description

@bradking

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.:

$ 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.

I expected the following

$ curl -v http://cmake.org
...
< HTTP/1.1 301 Moved Permanently
...
< Location: https://cmake.org/
...
* Connection #0 to host cmake.org left intact

curl/libcurl version

7.62.0. The failure bisects to commit 46e1640 from PR #3017.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions