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.SetOptionFollowLocation
Enables or disables following locations.
| 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 | Whether to follow locations. | 1 |
Result
Returns "OK" on success.
Description
Enables or disables following locations.A parameter set to 1 tells the library to follow any Location: header that the server sends as part of an HTTP header.
This means that the library will re-send the same request on the new location and follow new Location: headers all the way until no more such headers are returned. CURL.SetOptionMaxRedirs can be used to limit the number of redirects libcurl will follow.
CURL can limit what protocols it will automatically follow. The accepted protocols are set with CURL.SetOptionRedirProtocols and it excludes the FILE protocol by default.
See also FOLLOWLOCATION 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.GetRedirectURL
- CURL.GetRequestSize
- CURL.GetResultAsContainer
- CURL.SetOptionMaxRedirs
- CURL.SetOptionPostRedir
- CURL.SetOptionRedirProtocols
- CURL.SetOptionUnrestrictedAuth
- GMImage.Scale
Example Databases
- CURL/Amazon S3 Upload File
- CURL/CURL Download Picture with Info
- CURL/WebServices/AdobeSign WebService
- CURL/WebServices/Twitter oAuth
Created 18th August 2014, last changed 12nd May 2016
CURL.SetOptionFileTime - CURL.SetOptionForbidReuse
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins