Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets the redirect policy.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value | The new bitmask for redirections. | 3 |
Returns "OK" on success.
CURL_REDIR_POST_301 | 1 |
CURL_REDIR_POST_302 | 2 |
CURL_REDIR_POST_ALL | 3 |
See also POSTREDIR option in CURL manual.
Created 18th August 2014, last changed 3th February 2021