Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/http/headers/content-range/index.md
6532 views
---
title: Content-Range slug: Web/HTTP/Headers/Content-Range browser-compat: http.headers.Content-Range
---

{{HTTPSidebar}}

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

Header type {{Glossary("Response header")}}, {{Glossary("Payload header")}}
{{Glossary("Forbidden header name")}} no
{{Glossary("Simple response header", "CORS-safelisted response-header")}} no

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

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{HTTPHeader("If-Range")}}

  • {{HTTPHeader("Range")}}

  • {{HTTPHeader("Content-Type")}}

  • {{HTTPStatus("206")}} Partial Content

  • {{HTTPStatus("416")}} Range Not Satisfiable