Click to See Complete Forum and Search --> : How dose download accelarators work?


sawer
October 3rd, 2005, 08:59 AM
For example flashget.It can download different parts simultaneously.I wonder this.How can it achieve this?General agorithm will be enough for me...

sawer
October 3rd, 2005, 10:03 AM
How can i learn file size before i start to downoad?

MadHatter
October 3rd, 2005, 11:30 AM
http://www.faqs.org/rfcs/rfc2616.html

if nothing else, do a GET, and read the content lengh header, then request a multipart/byteranges header for the range of bytes to include in the subsequent GET for the part of the file you need.

put each in a seperate thread, and download the parts individually. of course there is a point of demenishing return (max capacity of the downloader / uploader's connection).