2016-09-26 3 views

Antwort

0

Der aktuelle Standard ist RFC 7233. Von 2.1 Byte Ranges:

The first-byte-pos value in a byte-range-spec gives the byte-offset 
of the first byte in a range. The last-byte-pos value gives the 
byte-offset of the last byte in the range; that is, the byte 
positions specified are inclusive. Byte offsets start at zero. 

Angewandt auf die Beispiele in 4.2 Content-Range:

The following are examples of Content-Range values in which the 
selected representation contains a total of 1234 bytes: 

o The first 500 bytes: 

    Content-Range: bytes 0-499/1234 

Da der Bereich auf Null basierende, 0 ist das erste Byte und 499 ist die 500ste. Also ist 1233 das letzte Byte eines 1234-Byte-Dokuments.

+1

Vielen Dank. Also ist Content-Length die tatsächliche Größe der Datei. – Prajwal

Verwandte Themen