The Digest HTTP header is a response HTTP header that provides the requested resource with a small value generated by a hash function from a whole message. The Digest HTTP header is a response header that provides a digest of the requested resource. The entire representation is used to calculate the digest. Multiple digest values for a single resource is also possible as the representation depends on Content-Type and Content-Encoding.
Directives: This header accepts two directives as mentioned above and described below:
- <digest-algorithm>: It contains defined supported algorithms, example SHA-256 and SHA-512.
- <digest-value>: It holds the result of encoding and applying the digest algorithm to the resource representation.
- It provides the resource with the sha-256 algorithm and also provides the digest value.
- It provides the resource with the sha-512 algorithm and also provides the digest value. In addition to that, it provides UNIX sum algorithm which is subject to collisions.
Digest: sha-512=\vdtgeeksforgeeks8nOJRJN3OWDDBPE=, unixsum=69
Supported Browsers: The browsers are compatible with HTTP Digest header are listed below:
- Google Chrome
- Internet Explorer
- HTTP headers | Want-Digest
- HTTP headers | Access-Control-Expose-Headers
- HTTP headers | Access-Control-Allow-Headers.
- HTTP headers | Via
- HTTP headers
- HTTP Headers | TE
- HTTP headers | Age
- HTTP headers | Allow
- HTTP headers | Last-Modified
- HTTP headers | Date
- HTTP headers | Expect
- HTTP headers | Cookie
- HTTP headers | Set-Cookie
- HTTP headers | Host
- HTTP headers | Range
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.