Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

CURL.SetOptionRedirProtocols

Limit which protocols are used for redirection.

Component Version macOS Windows Linux Server iOS SDK
CURL 2.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionRedirProtocols"; curl; Value )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value The bitmask defining which protocols to use. 1

Result

Returns "OK" on success.

Description

Limit which protocols are used for redirection.
Pass a number that holds a bitmask of protocol values (see below). If used, this bitmask limits what protocols libcurl may use in a transfer that it follows to in a redirect when CURL.SetOptionFollowLocation 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.

HTTP1
HTTPS2
FTP4
FTPS8
SCP16
SFTP32
TELNET64
LDAP128
LDAPS256
DICT512
FILE1024
TFTP2048
IMAP4096
IMAPS8192
POP316384
POP3S32768
SMTP65536
SMTPS131072
RTSP262144
ALL-1

See also REDIR_PROTOCOLS option in CURL manual.

See also

Created 18th August 2014, last changed 18th August 2014


CURL.SetOptionRange - CURL.SetOptionReferer

Feedback: Report problem or ask question.