HTTP headers | Range Last Updated : 31 Oct, 2019 Comments Improve Suggest changes Like Article Like Report 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: To get whole document starting from a particular range Range: <unit>=<range-start>- To request multiple parts Range: <unit>=<range-start>-<range-end>, <range-start>-<range-end> To request specific end part of the document Range: <unit>=-<suffix-length> Directives: There are four directives accepted by HTTP Range header, mentioned above and described below: unit: It specifies the unit in which range is given. Generally bytes are used. range-start: It is the integer specifying the starting of the document part. range-end: It is the integer specifying the ending of the document part. It is an optional directive. suffix-length: It is an integer indicating the end part of the document to be returned. Examples: To get first 100 bytes of the file Range: bytes=0-99 To get last 100 bytes of the file Range: bytes=-100 To request multiple ranges Range: bytes=0-99, 700-799 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: Google Chrome Internet Explorer Firefox Safari Opera Comment More infoAdvertise with us Next Article HTTP headers | Range A aman neekhara Follow Improve Article Tags : Computer Networks HTTP-headers Similar Reads HTTP Headers | TE The HTTP TE(also known as Accept-Transfer-Encoding) is a request-type header that specifies the transfer encodings that the user is willing to accept. It is very similar to the Transfer-Encoding response header. The difference is that this header uses another directive called trailers which is very 2 min read HTTP headers | Trailer The HTTP Trailer header is a response header that indicates the given set of header fields is present in the trailer of a message encoded with chunked transfer-coding and allows the sender to include additional fields at the end of chunked messages in order to supply metadata. Syntax: Trailer: heade 1 min read 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. Syntax: Content-Range: <unit> <range-start 1 min read HTTP headers | Accept-Ranges The HTTP Accept-Ranges is the Response type header also the part of the ranges system. This header act as a marker that is used by the server to supports the partial request of the clients. The HTTP Accept-Ranges is useful when the client requests any particular portion of a huge file then this head 2 min read HTTP headers | Origin The Origin HTTP Header is a response HTTP header that indicates the security contexts that initiates an HTTP request without indicating the path information. The Origin header is added by the browser and can not be controlled by the user. Syntax: Origin: <scheme> "://" <hostname> ":" 1 min read Like