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.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"; Handle; Value )

Parameters

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

Examples

Sets timeout to half second:

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

See also


CURL.SetOptionTimeValue   -   CURL.SetOptionTransferEncoding

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos