How proxy authentication works (and what a 407 error means)
By the ProxyOnly team · 1 Nov 2026 · 3 min read
A proxy needs to know who you are. Here is how username and password authentication works, how to write the URL correctly and why 407 happens.
Every paid proxy has to know who is using it. The most common way is a username and a password, sent with each request. When something goes wrong, the error you see is 407. This article explains what happens in between.
The four values
To use a proxy you need a host, a port, a username and a password. The host and port say where the proxy is. The username and password say who you are. Many tools ask for them in four separate boxes, and others want a single URL.
How the exchange works
Your tool connects to the proxy and sends the request. If the request does not carry valid credentials, the proxy answers with the status 407 Proxy Authentication Required and a header that tells your tool which kind of authentication it accepts. A tool that supports proxy authentication then repeats the request with the credentials, usually in a Proxy-Authorization header.
For a website that uses HTTPS, the tool first sends a CONNECT request to the proxy, which asks it to open a tunnel to the website. The proxy checks the credentials on that CONNECT request. After that, the encrypted traffic passes through the tunnel and the proxy cannot read it.
Why the proxy URL starts with http
People are often surprised to use http:// for a proxy that serves HTTPS websites. The scheme in the proxy URL describes how you talk to the proxy, not how you talk to the website. The proxy listens for plain HTTP requests, and the HTTPS traffic to the site travels inside the tunnel.
Building the URL
The URL form is:
http://USERNAME:PASSWORD@HOST:PORTIf the password contains special characters such as @, :, / or #, they must be written as percent codes in the URL, for example @ becomes %40. If you do not do that, the URL is cut in the wrong place and the credentials arrive wrong. The free format converter does the encoding for you.
Why you get a 407
- A typo in the username or password, or a space copied at the end.
- Special characters in the URL that were not encoded.
- A tool that does not send credentials at all, for example one that ignores the proxy password field.
- An expired order, so that the credentials are no longer active.
- Values mixed from two different proxies, such as the host of one and the password of another.
How to find the cause
Test with curl and the exact values from your dashboard. If curl works, the credentials are fine and the problem is in your tool. If curl also returns 407, copy the values again from the same proxy and check that your order is active. The curl testing guide shows the commands.
Keeping credentials safe
A proxy password is a secret like any other. Keep it in a password manager or an environment variable, not in source code and not in documents you share. Do not put it in tickets or chat. If you think it leaked, stop using it and tell support.
Options in the username
Some providers let you add options to the username, such as a country code or a session name, to steer a shared gateway. ProxyOnly does not: each proxy comes with its own host, port, username and password, and the country is chosen when you order. Use the username exactly as the order shows it.
Once you understand that a 407 is simply the proxy saying "I do not know who you are", it stops being mysterious: check the four values, check the encoding, check the order.
Try it yourself
Create an account, add funds from US$1 and order a proxy in the country you need.
Keep reading
25 Nov 2026 · Proxy basics
IP whitelisting (allowlisting) explained, and how static proxies help
IP allowlisting restricts access to a known set of addresses. Why it keeps breaking when your own address changes, and the fixes that actually hold.
25 Nov 2026 · Proxy basics
Buying IPv6 proxies: when they work and when they do not
IPv6 proxies cost a fraction of IPv4 because they only reach sites that publish an IPv6 address. How to check your targets before you spend anything.