CURLOPT_REDIR_PROTOCOLS - set protocols allowed to redirect to
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_REDIR_PROTOCOLS, long bitmask);
Pass 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 is enabled. This allows you to limit specific transfers to only be allowed to use a subset of protocols in redirections. By default libcurl will allow all protocols except for FILE and SCP.
All protocols except for FILE and SCP
Added in 7.19.4, before then it would follow all protcols.
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
This HTML page was made with roffit.