CURL.SetOptionTimeoutMS
-----------------------

Sets the transfer timeout in milliseconds.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionTimeoutMS"; curl; Value ) 

**MBS**( **"CURL.SetOptionTimeoutMS";** /\* Sets the transfer timeout in milliseconds. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Timeout value in milliseconds.e.g. 60000 \*/ 

### 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](CURLSetOptionTimeOut.md) 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](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html) option in CURL manual.

### Examples

Sets timeout to half second:

 MBS ( "CURL.SetOptionTimeOutMS"; $curl ; 500 )  
### See also

- [CURL.SetOptionAcceptTimeoutMS](CURLSetOptionAcceptTimeoutMS.md)
- [CURL.SetOptionTimeOut](CURLSetOptionTimeOut.md)
- [CURL.SetOptionTimeValue](CURLSetOptionTimeValue.md)

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

  
[CURL.SetOptionTimeValue](CURLSetOptionTimeValue.md) - [CURL.SetOptionTransferEncoding](CURLSetOptionTransferEncoding.md)

[HTML Version](CURLSetOptionTimeoutMS.shtml)