Open In App

HTTP headers | Want-Digest

Before discussing about HTTP Want-Digest Header, let us first understand what is Digest (or message digest) ? HTTP header Digest is an encrypted fixed-size representation of a message generated using a hash function. A hash function can be any function that maps the data of arbitrary size to a fixed size. Message digests are easy to encrypt but very hard to decrypt. It can be said that the process is irreversible. Therefore, message digests protect the integrity of the message and can easily detect any modifications in the message. Various types of hashing algorithms are used for the encryption of these messages.

HTTP Want-Digest header: The HTTP Want-Digest Header is a general HTTP header that requests the server to provide a digest of the requested source using the HTTP Digest response header. The requester sends one or more digest algorithms that can be used to create the digest within the header. If the server does not support these algorithms either the digest is calculated using some different algorithms or a 400 Bad Request is received with a list of supported algorithms in another HTTP Want-Digest Header.



Syntax:

Note: This header can contain multiple digest algorithm.



Directives: The HTTP Want-Digest header accepts two directives mentioned above and described below:

Example:

Supported Browsers: The browsers are compatible with the HTTP Want-Digest header are listed below:

Article Tags :