March 2003
Intermediate to advanced
312 pages
7h 12m
English
The Content-Range header is used in situations when the Web server is only returning a portion of the requested resource.
An example of this header is as follows:
Content-Range: 600-900/1234
This indicates that the content being returned is bytes 600-900 only and that the entire resource is 1234 bytes. It is important to remember that the first byte of a resource is 0, so byte 1233 would be the final byte for a resource with a length of 1234 bytes.
This header is, of course, most often seen in a response to an HTTP request that includes the Range request header, such as the following example:
Range: bytes 600-900
Multiple ranges can be requested in a comma-delimited list. The syntax also allows for open-ended ranges, such as ...
Read now
Unlock full access