CURL.SetOptionMaxSendSpeed
--------------------------

Sets the maximum sending speed.

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

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

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

(old name: CURL.SetOptionMaxSendSpeedLarge)

### Parameters

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

### Result

Returns "OK" on success.

### Description

Sets the maximum sending speed.  
If an upload 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.  
Useful if you have a limited pipe and you'd like your transfer not to use your entire bandwidth.  
Slowing down the transfer speed is also useful for lowering CPU consumption during transfers.  
See also [MAX\_SEND\_SPEED](https://curl.haxx.se/libcurl/c/CURLOPT_MAX_SEND_SPEED.html) option in CURL manual.

### See also

- [CURL.SetOptionMaxFileSize](CURLSetOptionMaxFileSize.md)
- [CURL.SetOptionMaxRecvSpeed](CURLSetOptionMaxRecvSpeed.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 20th April 2018

  
[CURL.SetOptionMaxRedirs](CURLSetOptionMaxRedirs.md) - [CURL.SetOptionMimeOptions](CURLSetOptionMimeOptions.md)

[HTML Version](CURLSetOptionMaxSendSpeed.shtml)