probonopd / zsync-curl

Partial/differential file download client over HTTP(S)
109 stars 23 forks source link

Add switch for CURLOPT_REDIR_PROTOCOLS #8

Closed probonopd closed 6 years ago

probonopd commented 8 years ago

Some servers redirect to HTTPS even though HTTP was requested and even though they also support HTTP. If we integrate CURLOPT_REDIR_PROTOCOLS then we can get rid of the need for HTTPS dependencies (and save some server load) by enforcing plain HTTP.

http://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS.html

We should check CURL_VERSION_SSL and only if it indicates that HTTPS is supported it should be supported for redirects.

http://curl.haxx.se/libcurl/c/curl_version_info.html

Generally it would be useful if libcurl would only allow redirects to supported protocols and otherwise try to stay on the same protocol.

TheAssassin commented 6 years ago

Please switch to zsync2, and report bugs there if you find some. Closing as this repository is no longer developed.