W3cubDocs

/HTTP

Content-Range

Content-Range

The Content-Range response HTTP header indicates where in a full body message a partial message belongs.

Syntax

Content-Range: <unit> <range-start>-<range-end>/<size>
Content-Range: <unit> <range-start>-<range-end>/*
Content-Range: <unit> */<size>

Directives

<unit>

The unit in which ranges are specified. This is usually bytes.

<range-start>

An integer in the given unit indicating the start position (zero-indexed & inclusive) of the request range.

<range-end>

An integer in the given unit indicating the end position (zero-indexed & inclusive) of the requested range.

<size>

The total length of the document (or '*' if unknown).

Examples

Content-Range: bytes 200-1000/67589

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
Content-Range
Yes
12
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes

See also

© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range