CURLOPT_REDIR_PROTOCOLS (3) Linux Manual Page
CURLOPT_REDIR_PROTOCOLS – set protocols allowed to redirect to Synopsis#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_REDIR_PROTOCOLS, long bitmask); DescriptionPass a long that holds a bitmask of CURLPROTO_* defines. If used, this bitmask limits what protocols libcurl may use in a transfer that it follows to in a redirect when CURLOPT_FOLLOWLOCATION(3) is enabled. This allows you to limit…
