Proxy-Authenticate Header

Table of Content

The Proxy-Authenticate header is an HTTP response header that defines the authentication method that should be used to gain access to a resource behind a proxy server. The client must authenticate itself to get a valid response. It is used by proxy servers to specify the type of authentication required to access the requested server.

Syntax

Proxy-Authenticate: <type> realm=<realm>

Directives

  • <type> : This directive is the type of authentication method that should be used. It could be Basic, Digest, Bearer, etc.
  • <realm> : A string to be displayed to users so they know which username and password to use. This string should contain at least one word.

Examples

Proxy-Authenticate: Basic realm="Secure Area"
Proxy-Authenticate: Bearer realm="http://example.com"

Browser Compatibility

Browser Compatibility
Chrome Supported
Firefox Supported
Safari Supported
Opera Supported
Edge Supported

How to modify Proxy-Authenticate header

ModHeader is a Chrome extension that can be used to modify HTTP request and response headers. It can be helpful if you require to modify the Proxy-Authenticate header for testing purposes.

Here's how to use it:

  1. Install the ModHeader extension from the Chrome Web Store.
  2. Once installed, click on the ModHeader icon to open the extension.
  3. In the 'Response headers' section, click on 'Add'.
  4. Under 'Name', enter 'Proxy-Authenticate'.
  5. Under 'Value', enter the preferred value e.g., 'Basic realm="Secure Area"'.
  6. Visit the site where you wish to modify the header. The ModHeader extension will automatically modify the Proxy-Authenticate header according to your specifications.

Remember, this change only affects your browser’s view and is used mainly for testing and debugging purposes. It doesn’t actually change the server’s original response.