-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Description
Now curl supports segmented requests through --range, but all this must be manual.
I can use
curl -D "dump1.txt" -H "Range: bytes=0-2000" https://www.baidu.com/img/bd_logo1.png -o part1
curl -D "dump2.txt" -H "Range: bytes=2001-4000" https://www.baidu.com/img/bd_logo1.png -o part2
curl -D "dump3.txt" -H "Range: bytes=4001-" https://www.baidu.com/img/bd_logo1.png -o part3
Segment request
then,
cat part1 part2 part3 >> logo.png
Merge, so that I can use three tcp connections to download files at the same time, and strive for greater bandwidth,
It would be great if these could all be automatic,
Such as
curl -X 3 https://www.baidu.com/img/bd_logo1.png -o logo.png
It will be very happy
Reactions are currently unavailable