Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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