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

CURL.SetOptionForbitReuse

Whether to disallow reusing connections.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionForbitReuse"; Handle; Value )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value Whether to disallow reusing connections. 0

Result

Returns "OK" on success.

Description

Whether to disallow reusing connections.
Set to 1 to make the next transfer explicitly close the connection when done. Normally, libcurl keeps all connections alive when done with one transfer in case a succeeding one follows that can re-use them. This option should be used with caution and only if you understand what it does. Set to 0 to have libcurl keep the connection open for possible later re-use (default behavior).
see also CURL.SetOptionFreshConnect.

Examples

Forbit reusing connection:

MBS( "CURL.SetOptionForbitReuse"; $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


CURL.SetOptionFollowLocation   -   CURL.SetOptionFreshConnect

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins