CURLOPT_REDIR_PROTOCOLS_STR
Constant • Added in PHP 8.3
CURLOPT_REDIR_PROTOCOLS_STR
— Set to a string
with a comma separated list
of case insensitive protocol names (URL schemes)
to allow to follow to in a redirect when
CURLOPT_FOLLOWLOCATION
is enabled.
Set to ALL
to enable all protocols.
As of cURL 7.65.2 it defaults to FTP
,
FTPS
, HTTP
and HTTPS
.
From cURL 7.40.0 to 7.65.1, this defaults to all protocols except
FILE
, SCP
, SMB
and
SMBS
.
Prior to cURL 7.40.0, this defaults to all protocols except
FILE
and SCP
.
Available protocols are:
.
Available as of PHP 8.3.0 and cURL 7.85.0.
CURLOPT_REDIR_PROTOCOLS_STR = 10319;
Changes to the CURLOPT_REDIR_PROTOCOLS_STR
Constant
PHP 8.3
- Constant added
CURLOPT_REDIR_PROTOCOLS_STR
Constant Availability
CURLOPT_REDIR_PROTOCOLS_STR
Constant AvailabilityPHP Version | Availability |
---|---|
PHP 8.5Future Release | Yes |
PHP 8.4Upcoming Release | Yes |
PHP 8.3Supported (Latest) | Yes |
PHP 8.2Supported | No |
PHP 8.1Security-Fixes Only | No |
PHP 8.0Unsupported | No |
PHP 7.4Unsupported | No |
PHP 7.3Unsupported | No |
PHP 7.2Unsupported | No |
PHP 7.1Unsupported | No |
PHP 7.0Unsupported | No |
PHP 5.6Unsupported | No |
PHP 5.5Unsupported | No |
PHP 5.4Unsupported | No |
PHP 5.3Unsupported | No |