Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Sets the redirection limit.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionMaxRedirs"; Handle; Value )


Parameter Description Example value
Handle The CURL session handle. $curl
Value Maximum number of redirects. -1


Returns "OK" on success.


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)


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

Example Databases

CURL.SetOptionMaxRecvSpeedLarge   -   CURL.SetOptionMaxSendSpeedLarge

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins