CURL.SetOptionServerResponseTimeout
-----------------------------------

Sets the timeout for FTP responses.

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

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

**MBS**( **"CURL.SetOptionServerResponseTimeout"** /\* Sets the timeout for FTP responses. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The timeout value in seconds. e.g. 60 \*/ 

(old name: CURL.SetOptionFTPResponseTimeout)

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | The timeout value in seconds. | 60 |

### Result

Returns "OK" on success.

### Description

Sets the timeout for FTP responses.  
Sets timeout period (in seconds) on the amount of time that the server is allowed to take in order to generate a response message for a command before the session is considered hung.   
While curl is waiting for a response, this value overrides [CURL.SetOptionTimeOut](CURLSetOptionTimeOut.md). It is recommended that if used in conjunction with [CURL.SetOptionTimeOut](CURLSetOptionTimeOut.md), you set CURL.SetOptionFTPResponseTimeout to a value smaller than [CURL.SetOptionTimeOut](CURLSetOptionTimeOut.md).   
See also [SERVER\_RESPONSE\_TIMEOUT](https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT.html) option in CURL manual.

### See also

- [CURL.SetOptionTimeOut](CURLSetOptionTimeOut.md)

### Release notes

- **Version 12.4**
    - Renamed [CURL.SetOptionFTPResponseTimeout](https://www.mbsplugins.eu/CURLSetOptionServerResponseTimeout.shtml) function to [CURL.SetOptionServerResponseTimeout](https://www.mbsplugins.eu/CURLSetOptionServerResponseTimeout.shtml). (old name stays valid, too)

### Blog Entries

- [MBS FileMaker Plugin, version 12.4pr5](https://www.mbsplugins.de/archive/2022-09-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 1st September 2022

  
[CURL.SetOptionSSLVersion](CURLSetOptionSSLVersion.md) - [CURL.SetOptionServiceName](CURLSetOptionServiceName.md)

[HTML Version](CURLSetOptionServerResponseTimeout.shtml)