HTTP 407 Proxy Authentication Required — Proxy Login Needed
About HTTP 407 Proxy Authentication Required
HTTP 407 Proxy Authentication Required means you must authenticate with a proxy server before the request can be forwarded to the destination. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.
Here are the key things to understand: 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. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.
The most common reasons this occurs include: 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. Identifying the root cause is the first step toward finding the right solution.
To resolve this, follow these recommended steps: Enter proxy credentials when prompted by the browser. Configure proxy authentication in your application: set http_proxy=http://user:pass@proxy:port. In browsers, check proxy settings: Settings > System > Proxy. For CLI tools, set environment variables: export HTTP_PROXY=http://user:pass@proxy:8080. Contact your network administrator for proxy credentials if you do not have them. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.
This article is part of our HTTP Status Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.
Quick Answer
How is 407 different from 401?
401 requires authentication with the website server. 407 requires authentication with an intermediate proxy server.
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