Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets whether to not reuse old connections.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes
MBS( "CURL.SetOptionFreshConnect"; curl; Value )   More


Parameter Description Example value
curl The CURL session handle. $curl
Value Whether to not reuse old connection for next transfer. 0


Returns "OK" on success.


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.


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.

MBS Xojo PDF Plugins