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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

CURL.SetOptionTimeOut

Sets the maximum time in seconds that you allow the transfer operation to take.

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

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value Timeout it seconds. 60

Result

Returns "OK" on success.

Description

Sets the maximum time in seconds that you allow the transfer operation to take.
Normally, name lookups can take a considerable time and limiting operations to less than a few minutes risk aborting perfectly normal operations. This option will cause curl to use the SIGALRM to enable time-outing system calls.

See also TIMEOUT option in CURL manual.

Examples

Sets timeout to one minute:

MBS( "CURL.SetOptionTimeOut"; $curl; 60 )

See also

Blog Entries

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


CURL.SetOptionTimeCondition - CURL.SetOptionTimeValue

Feedback: Report problem or ask question.