Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

CURL.SetOptionTimeoutMS

Sets the transfer timeout in milliseconds.

Component Version macOS Windows Linux Server iOS SDK
CURL 2.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionTimeoutMS"; curl; Value )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value Timeout value in milliseconds. 60000

Result

Returns "OK" on success.

Description

Sets the transfer timeout in milliseconds.
Like CURL.SetOptionTimeOut but takes number of milliseconds instead. If libcurl is built to use the standard system name resolver, that portion of the transfer will still use full-second resolution for timeouts with a minimum timeout allowed of one second.

See also TIMEOUT_MS option in CURL manual.

Examples

Sets timeout to half second:

MBS( "CURL.SetOptionTimeOutMS"; $curl; 500 )

See also

Created 18th August 2014, last changed 8th December 2016


CURL.SetOptionTimeValue - CURL.SetOptionTransferEncoding

💬 Ask a question or report a problem