HTTP 407 Proxy Authentication Required — Proxy Login Needed
Warning4xx client error
Overview
HTTP 407 Proxy Authentication Required means you must authenticate with a proxy server before the request can be forwarded to the destination.
Key Details
- Similar to 401 Unauthorized but for proxy servers, not origin servers
- The response includes a Proxy-Authenticate header specifying the authentication scheme
- Client must resend the request with a Proxy-Authorization header
- Common in corporate environments with authenticated web proxies
- Applications must handle this differently from 401 — use proxy credentials, not server credentials
Common Causes
- Corporate proxy requires username and password authentication
- Proxy session expired and requires re-authentication
- Application not configured with proxy credentials
- Proxy auto-detect sending traffic through an authenticated proxy
- VPN or security software adding a local authenticated proxy
Steps
- 1Enter proxy credentials when prompted by the browser
- 2Configure proxy authentication in your application: set http_proxy=http://user:pass@proxy:port
- 3In browsers, check proxy settings: Settings > System > Proxy
- 4For CLI tools, set environment variables: export HTTP_PROXY=http://user:pass@proxy:8080
- 5Contact your network administrator for proxy credentials if you do not have them
Tags
http407proxyauthenticationcorporate
More in 4xx Client Error
http-400-bad-requestHTTP 400 Bad Request — What It Means & How to Fix It
Errorhttp-401-unauthorizedHTTP 401 Unauthorized — What It Means & How to Fix It
Errorhttp-402-payment-requiredHTTP 402 Payment Required — What It Means & How to Fix It
Errorhttp-403-forbiddenHTTP 403 Forbidden — What It Means & How to Fix It
Errorhttp-404-not-foundHTTP 404 Not Found — What It Means & How to Fix It
Errorhttp-405-method-not-allowedHTTP 405 Method Not Allowed — What It Means & How to Fix It
ErrorFrequently Asked Questions
401 requires authentication with the website server. 407 requires authentication with an intermediate proxy server.