HTTP range requests
Also called: byte-range request, partial content
A range request asks for part of a representation, which helps resume downloads or seek within large files. With byte ranges, positions start at zero and the ending position is inclusive. A server that honors the request returns 206 Partial Content and identifies the returned range; support is not guaranteed.
For a 1,000-byte file, Range: bytes=200-399 asks for 200 bytes. A matching response carries Content-Range: bytes 200-399/1000. A server can ignore the range and send the full file with 200, or reject an unsatisfiable range with 416. An If-Range validator helps a client avoid combining pieces from different versions.
- Read first
- HTTP
- Further reading
- MDN — HTTP range requests