Proxy-Authenticate Header Explained

What the HTTP Proxy-Authenticate header does and when it's used.

Published October 17, 2026

Proxy-Authenticate is sent with a 407 response and tells the client how to authenticate with the proxy.

How it works

The client replies with Proxy-Authorization.

The Proxy-Authenticate header is part of the HTTP message and is case-insensitive in name.

In a real exchange

curl -i https://example.com/
Proxy-Authenticate: Basic realm="corp-proxy"
Where Proxy-Authenticate appears.

Practical examples

The header

Proxy-Authenticate: Basic realm="corp-proxy"

Set or use it in code

curl -x http://user:pass@proxy:3128 https://example.com

Inspect it

curl -sI https://example.com | grep -i 'proxy-authenticate'

Common mistakes

  • Confusing it with WWW-Authenticate
  • Sending credentials to the wrong host
  • Hard-coding proxy passwords

Key takeaways

  • Proxy-Authenticate: Proxy-Authenticate is sent with a 407 response and tells the client how to authenticate with the proxy.
  • Check it in browser DevTools → Network.
  • Test with curl -I before deploying.

FAQ

Difference from WWW-Authenticate?

Proxy-Authenticate targets the proxy; WWW-Authenticate targets the origin server.

Is Proxy-Authenticate case sensitive?

Header names are case-insensitive; values may not be.

More HTTP articles