Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetOptionMaxSendSpeed
Sets the maximum sending speed.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.SetOptionMaxSendSpeed"; curl; Value ) More
(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 option in CURL manual.
See also
Blog Entries
Created 18th August 2014, last changed 20th April 2018