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.SetOptionFreshConnect
Sets whether to not reuse old connections.
| 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 not reuse old connection for next transfer. | 0 |
Result
Returns "OK" on success.
Description
Sets whether to not reuse old connections.Set to 1 to make the next transfer use a new (fresh) connection by force. If the connection cache is full before this connection, one of the existing connections will be closed as according to the selected or default policy. This option should be used with caution and only if you understand what it does. Set this to 0 to have libcurl attempt re-using an existing connection (default behavior).
see also CURL.SetOptionForbitReuse.
See also FRESH_CONNECT option in CURL manual.
Examples
Request a fresh connection:
MBS( "CURL.SetOptionFreshConnect"; $curl; 1 )
Forbit reuse and make fresh connection:
Set Variable [$EmailID; Value: MBS( "CURL.SetOptionForbitReuse"; $curl; 1 ) ]
Set Variable [$EmailID; Value: MBS( "CURL.SetOptionFreshConnect"; $curl; 1 ) ]
See also
Example Databases
Created 18th August 2014, last changed 21st June 2016
CURL.SetOptionForbidReuse - CURL.SetOptionGSSAPIDelegation
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins