What is HTTP GET request?
The GET method is one of nine standard HTTP (Hypertext Transfer Protocol) request methods to request data from a server. The HTTP GET request method requests a resource from the server using the URL provided. GET method requests should only receive data. They cannot accept data in the body of a GET message and should not affect data on the server. To make changes to the server, use the PATCH, PUT, POST, or DELETE methods.
What is Accept-Encoding?
The Accept-Encoding HTTP request headers are an algorithm for comparing request headers. The HTTP client tells the server what encoding it supports. Depending on which encoding format is supported by the server, the server will respond in that format. The server selects content negotiation for one of the offers and informs the client of this choice with a Content-Encoding response header.
Accept-Encoding HTTP Header Syntax
Below is the syntax of the Accept-Encoding HTTP request header:
- gzip: the Lempel-Ziv coding (LZ77) and 32-bit CRCs are used to compress data;
- Compress: the Lempel-Ziv-Welch (LZW) algorithm is used to compress data;
- deflate: a compression format based on Zlib and the deflate compression algorithm;
- br: a compression format using the Brotli algorithm;
- identity: the directive indicates the identity acceptable function;
- *: the directive matches any encoding in the header, whether listed or not. It is the default value.