Meet us at at Real World in Orlando, Florida.
All functions
Mac OS X
Windows
Crossplatform
Components
Guides
New in version:
2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
CURL.SetOptionFollowLocation
Component: CURL
Version: 2.5
Mac OS X: Works
Windows: Works
MBS( "CURL.SetOptionFollowLocation"; handle; value )
Parameters
| Parameter | Description | Example value |
|---|---|---|
| Handle | 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.
Feedback: Report problem or ask question.
Links
MBS Real Studio Plugins - Pfarrgemeinde Ministranten Nickenich