These curl recipes show you how to make curl requests and responses slow. By default, curl uses the maximum available bandwidth, but often you need to slow things down for testing. To make curl slow, use the
--limit-rate speed option.
Limit Curl to 200 Kilobytes per Second
curl --limit-rate 200k https://google.com
This recipe uses the
--limit-rate 200k command line option to rate-limit both the request and response to 200 kilobytes per second. You can also use the
m suffix for megabytes per second and
g for gigabytes per second.
Limit Curl to 1 byte per Second
curl --limit-rate 1 https://google.com
If you don't indicate the speed unit, then curl uses bytes per second. In this recipe, we do just that and set curl's speed to just 1 byte per second. With this speed limit, it will take an eternity for the requests and responses to complete.
Created by Browserling
These curl recipes were written down by me and my team at Browserling. We use recipes like this every day to get things done and improve our product. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!
Secret message: If you love my curl recipe, then I love you, too! Use coupon code CURLLING to get a discount at my company.