Resumable and partial download with PHP curl or similar? -


Is it possible to download partially downloaded files with curls or similar? I mean, suppose we have a large http or ftp which is a size of 1 GB; Can I send the file byte x from y in any way?

Due to simplicity, the question I see is not included in the downloaded divisions along with this question; Rather download the fragments and save each one as a septet file.

You can do something like this:

  curl_setopt ($ obj , CURLOPT_HTTPHEADER, array ("range: bytes = 1024000-2048000");   

This will only work for HTTP.

Comments