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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CURL.SetOptionMaxRedirs
Sets the redirection limit.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CURL | 2.5 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Maximum number of redirects. | -1 |
Result
Returns "OK" on success.
Description
Sets the redirection limit.If that many redirections have been followed, the next redirect will cause an error (CURLE_TOO_MANY_REDIRECTS). This option only makes sense if the CURL.SetOptionFollowLocation is used at the same time. Added in 7.15.1: Setting the limit to 0 will make CURL refuse any redirect. Set it to -1 for an infinite number of redirects (which is the default)
See also MAXREDIRS option in CURL manual.
Examples
Allow up to three redirects:
Set Variable [$result; Value: MBS("CURL.SetOptionFollowLocation"; $curl; 1)]
Set Variable [$result; Value: MBS("CURL.SetOptionMaxRedirs"; $curl; 3)]
See also
- CURL.GetEffectiveURL
- CURL.GetResultAsContainer
- CURL.SetOptionFollowLocation
- CURL.SetOptionMaxAgeConn
- CURL.SetOptionMaxFileSize
- CURL.SetOptionPostRedir
- GMImage.Scale
Example Databases
Created 18th August 2014, last changed 12nd May 2016
CURL.SetOptionMaxRecvSpeed - CURL.SetOptionMaxSendSpeed
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins