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 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"; Handle; Value )


Parameter Description Example value
Handle 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.


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

CURL.SetOptionForbitReuse   -   CURL.SetOptionGet

Feedback: Report problem or ask question.

MBS Xojo Plugins