Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetOptionMaxRecvSpeed
Sets the maximum download speed.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.SetOptionMaxRecvSpeed"; curl; Value ) More
(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 option in CURL manual.
Examples
Slow down to 5 KB/s:
Set Variable [$r; Value: MBS( "CURL.SetOptionMaxRecvSpeed"; $curl; 5000 ) ]
See also
Blog Entries
Created 18th August 2014, last changed 17th June 2022
CURL.SetOptionMaxLifeTimeConnection - CURL.SetOptionMaxRedirs