Open In App

HTTP headers | Range

HTTP headers are used to pass additional information with HTTP request or response. HTTP range is an HTTP request header that is used to get part of a document from the server. If the server returns the part of the document, it uses the 206 (Partial Content) status code. If ranges are invalid status code used is 416 (Range Not Satisfiable) and the server uses status code 200 (OK) in case it ignores the range request.

Syntax:



Directives: There are four directives accepted by HTTP Range header, mentioned above and described below:

Examples:



To check this Range in action go to Inspect Element -> Network check the request header for Range.

Supported Browsers: The browsers supported by HTTP header Range are listed below:

Article Tags :