Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

CURL.SetOptionTimeoutMS

Sets the transfer timeout in milliseconds.

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

Parameters

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

Feedback: Report problem or ask question.




Links
MBS FileMaker blog