HTTP headers | ContentRange (original) (raw)

HTTP headers | Content-Range

Last Updated : 23 Oct, 2019

The Content-Range HTTP header is a response header that indicates where a partial message belongs in a full body massage. This header is sent with a partial entity-body to specify where in the full entity-body the partial body should be applied.Syntax:

Content-Range: -/

Content-Range: -/*

Content-Range: */

Directives:

Examples:

Content-Range: bytes 500-1000/65989

It specifies the unit of the range as bytes and states the range-start as 500 bytes while the range-end as 1000 bytes. The total size of the document is 65989 bytes.

Content-Range: bytes 50-1000/*

It specifies the unit of the range as bytes and states the range-start as 50 bytes while the range-end as 1000 bytes. The total size of the document is unknown.Supported Browsers The following browsers are compatible with HTTP Content-Range: