Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

CURL.SetOptionTimeOut

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

Component: CURL
Version: 2.5
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "CURL.SetOptionTimeOut"; Handle; Value )

Parameters

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

Examples

Sets timeout to one minute:

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

See also


CURL.SetOptionTimeCondition   -   CURL.SetOptionTimeValue

Feedback: Report problem or ask question.




Links
MBS Realbasic tutorial videos - Christians Software aus Nickenich