Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets whether to not reuse old connections.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value | Whether to not reuse old connection for next transfer. | 0 |
Returns "OK" on success.
See also FRESH_CONNECT option in CURL manual.
Request a fresh connection:
Set Variable [$r; Value: MBS( "CURL.SetOptionFreshConnect"; $curl; 1 )]
Forbit reuse and make fresh connection:
Set Variable [$EmailID; Value: MBS( "CURL.SetOptionForbidReuse"; $curl; 1 ) ]
Set Variable [$EmailID; Value: MBS( "CURL.SetOptionFreshConnect"; $curl; 1 ) ]
Require new connection every 20 emails:
Set Variable [ $r; Value: MBS("CURL.SetOptionFreshConnect"; $curl; Mod ( GetAsNumber ( $count ) ; 20 ) = 0 ]
Created 18th August 2014, last changed 16th February 2024