HTTP headers | Content-Range
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.
Content-Range: <unit> <range-start>-<range-end>/<size>
Content-Range: <unit> <range-start>-<range-end>/*
Content-Range: <unit> */<size>
- <unit>: This specifies the unit of content range. This value is usually in bytes.
- <range-start>: An integer that specifies the beginning of the requested range in a given unit.
- <range-end>: An integer that specifies the ending of the requested range in a given unit.
- <size>: This specifies the total size of the document. The ‘*’ is used when the value is unknown.
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:
- Google Chrome
- Internet Explorer
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!