If libcurl is built with MultiSSL support (not the case for e.g. Debian/Ubuntu, which ship separate, conflicting libraries), this allows selecting the SSL/TLS backend libcurl uses.
The maximum number of redirects can be limited. The functionality can also be disabled. Fixes #2366.