Re: Re: Re: How to count transfered kBytes in File-Download

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Ashley,

Am 2009-01-04 09:23:46, schrieb Ashley Sheridan:
> I'm still a little confused on this though. How would a browser send
> this to notify of a download that was only partially completed before?

I am using Mozilla/Iceape under Debian GNU/Linux  and  it  is  sometimes
realy confusing since it support resum broken  downloads  but  sometimes
not.

So in general, if you want to download something,  the  Download  Client
(wget, curl or a Web-Browser) is checking whether a File with  the  same
name exist already and do a filesize($DL_FILE).  Then it send the  infos
together WITH the normal HTTP header and then it is the JOB of the  Web-
or FTP-Server to act...

This mean, if the SERVER check the RANGE header and see: "Oh, the client
has already 1234 Bytes but my file is 5678 Bytes." the SERVER  SKIP  the
first 1234 Bytes and start at the 1235 Bytes sending up to the end.

However, Webservers supporting the RANGE header can send a real  partial
file like the filesize is 10000 Bytes and the Client can request to  get
the Bytes from 2001 to 4000.

This is what Bit-Torrent does e.g.:

    client -> server 1 ->     0 to  2000 bytes
              server 2 ->  2001 to  4000 bytes
              server 3 ->  4001 to  6000 bytes
              server 4 ->  6001 to  8000 bytes
              server 5 ->  8001 to 10000 bytes

the problem is now, the FORMAT of the RANGE header.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>               <http://www.can4linux.org/>
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

<<attachment: signature.pgp>>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux