Downloading a file through different IP addresses
May 29th, 2009
Comments Off
Some websites/ftpsites have a restriction that one IP address can only have one connection for downloading files. Linux has a very cool download tool can overcome this limitation. The tool, curl, can let you download a file through different local IP addresses or network interfaces simutanously by using the following command
curl --interface eth0:1 --range 0-1000 [URL] -o outputfile1 & curl --interface eth0:2 --range 1001- [URL] -o outputfile2 &
The first command will download 0-1000 bytes of the file, and the second command will download the rest. After finish the downloading, use cat to join the files.