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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

CURL.SetOptionFreshConnect

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 )

Parameters

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

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


CURL.SetOptionForbitReuse   -   CURL.SetOptionGet

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins