9

I am not clear about the concept of breaking the file into multiple part and then download each part separately. According to me, What we have only the path of that file where it exist on the internet so how to break this file just by knowing the URL or path?

Marko Topolnik
  • 195,646
  • 29
  • 319
  • 436
Jatin Khurana
  • 1,155
  • 8
  • 15

2 Answers2

8

There is a special provision in HTTP 1.1 for this: the Range header, which allows you to fetch a selected portion of the resource. This is exactly what these download managers use.

Marko Topolnik
  • 195,646
  • 29
  • 319
  • 436
3

You can review some code example in Java of partial file download: Resume download in urlconnection. In rfc2616 specified header 'Range' allows to request specified part of file.

So Download Manager simply start partial file downloading in several connection in parallel.

Community
  • 1
  • 1
Taky
  • 5,284
  • 1
  • 20
  • 29