CURL.SetOptionMaxRecvSpeed
--------------------------

Sets the maximum download speed.

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

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

**MBS**( **"CURL.SetOptionMaxRecvSpeed";** /\* Sets the maximum download speed. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The maximum download speed in bytes per second.e.g. 50000 \*/ 

(old name: CURL.SetOptionMaxRecvSpeedLarge)

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | The maximum download speed in bytes per second. | 50000 |

### Result

Returns "OK" on success.

### Description

Sets the maximum download speed.  
If a download exceeds this speed (counted in bytes per second) on cumulative average during the transfer, the transfer will pause to keep the average rate less than or equal to the parameter value. Defaults to unlimited speed.  
See also [MAX\_RECV\_SPEED](https://curl.haxx.se/libcurl/c/CURLOPT_MAX_RECV_SPEED.html) option in CURL manual.

### Examples

Slow down to 5 KB/s:

 Set Variable \[$r ; Value: MBS ( "CURL.SetOptionMaxRecvSpeed"; $curl ; 5000 ) \]  
### See also

- [CURL.SetOptionMaxFileSize](CURLSetOptionMaxFileSize.md)
- [CURL.SetOptionMaxSendSpeed](CURLSetOptionMaxSendSpeed.md)

### Blog Entries

- [Translating Insert from URL options for CURL to MBS Plugin calls](https://www.mbsplugins.de/archive/2020-12-14/Translating_Insert_from_URL_op/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 17th June 2022

  
[CURL.SetOptionMaxLifeTimeConnection](CURLSetOptionMaxLifeTimeConnection.md) - [CURL.SetOptionMaxRedirs](CURLSetOptionMaxRedirs.md)

[HTML Version](CURLSetOptionMaxRecvSpeed.shtml)