How to use a proxy: set it up on any device, browser or tool
By the ProxyOnly team · 16 Nov 2026 · 7 min read
Using a proxy takes four values, one place to enter them and one test. We tested which settings curl, Python, Node and git read, and where browsers and systems keep theirs.
To use a proxy you need four values, one place to enter them and one test that proves it works. The places differ from tool to tool, and so do the rules, which is where most setups go wrong. This guide explains the values, the three levels at which a proxy can be set, and what we measured about which settings real tools read. At the end it points to the setup guide for each tool in our directory.
The four values
Every ProxyOnly proxy comes with four values of its own, which you copy from the dashboard after you order:
- Host: the proxy's address, usually an IP address.
- Port: the proxy's port, which differs from proxy to proxy.
- Username: the proxy username, used exactly as the order shows it. The country was chosen when you ordered, so there is nothing to add to it.
- Password: the proxy password.
Together they make a proxy URL:
http://USERNAME:PASSWORD@HOST:PORTThe URL starts with http://, even when the website you visit uses HTTPS. Our directory says the protocol is always HTTP. The proxy does not read the encrypted traffic. For an HTTPS site your tool sends a CONNECT request, and the proxy opens a tunnel to the site. We saw this in a test, where the local proxy received CONNECT httpbin.org:443, which names the destination host and port but not the page or its content. How proxy authentication works explains the exchange.
Test with curl first
Before you put the values into anything else, test them with curl, which is the fastest way to separate a wrong credential from a tool problem. The guide to testing a proxy with curl has the details. The command has this shape, with your own values:
curl -x http://USERNAME:PASSWORD@HOST:PORT https://httpbin.org/ipIf curl prints an address, the values work. A 407 means the username or password is wrong or was not sent, and a timeout usually means a wrong host or port. See 407 Proxy Authentication Required and proxy connection timed out.
The three levels where a proxy can be set
- Per request. You pass the proxy to one call, for example
curl -xor theproxiesargument of Python'srequests. Nothing else is affected, so it is the safest way. - Per process, through environment variables. Many tools read variables such as
https_proxywhen they start. One setting then covers every request that the tool makes. - System-wide or per application. The operating system, a browser or a program keeps its own proxy setting, which covers everything that reads it.
The rules for what each tool reads differ, and the documentation is not always clear. So we tested them.
What we tested
We ran a small proxy on our own machine that logs the first line of every request it receives, then ran each tool with a proxy setting. When the setting was ignored, the log stayed empty. This is what each tool sent to the proxy:
curl -x PROXY http://... GET http://httpbin.org/get HTTP/1.1
curl -x PROXY https://... CONNECT httpbin.org:443 HTTP/1.1
http_proxy=PROXY curl http://... GET http://httpbin.org/get HTTP/1.1
HTTP_PROXY=PROXY curl http://... (proxy saw nothing)
https_proxy=PROXY curl https://... CONNECT httpbin.org:443 HTTP/1.1
HTTPS_PROXY=PROXY curl https://... CONNECT httpbin.org:443 HTTP/1.1
ALL_PROXY=PROXY curl http://... GET http://httpbin.org/get HTTP/1.1
http_proxy=PROXY NO_PROXY=httpbin.org curl (proxy saw nothing)
Python requests, HTTP_PROXY=PROXY GET http://httpbin.org/get HTTP/1.1
Python requests, https_proxy=PROXY CONNECT httpbin.org:443 HTTP/1.0
Python requests, proxies={...} argument GET http://httpbin.org/get HTTP/1.1
Node 24 fetch, https_proxy=PROXY (proxy saw nothing)
Node 24 fetch, same plus NODE_USE_ENV_PROXY=1 CONNECT httpbin.org:443 HTTP/1.1
git -c http.proxy=PROXY ls-remote https://... CONNECT github.com:443 HTTP/1.1What this shows:
- curl accepts upper and lower case, with one exception. For
http://addresses it only reads the lower-casehttp_proxy, and it silently ignoredHTTP_PROXY. curl's manual says so too: the lower case version has precedence, andhttp_proxyis only available in lower case. NO_PROXYworked. WithNO_PROXY=httpbin.org, curl skipped the proxy for that host, which is how you keep local or internal addresses off the proxy.- Python
requestsreadHTTP_PROXYin upper case andhttps_proxyin lower case, and theproxiesargument worked as expected. - Node.js 24's built-in
fetchignoredhttps_proxycompletely. It used it only after we setNODE_USE_ENV_PROXY=1, a switch described in the Node.js documentation. A Node script that seems to ignore your variables is probably doing exactly this. - git has its own setting,
http.proxy, and used it for an HTTPS remote through aCONNECTtunnel.
The rule that follows is to test every tool, and not to assume that one tool's behaviour carries over to the next.
Systems and browsers
An operating system keeps a proxy setting that many programs read. We checked the one on our Mac without changing it:
$ networksetup -getwebproxy Wi-Fi
Enabled: No
Server:
Port: 0
Authenticated Proxy Enabled: 0networksetup -listallnetworkservices lists the names to use in place of Wi-Fi. Our directory has step-by-step guides for Windows 11, macOS, Android, iPhone and iPad and the Linux environment variables.
Browsers differ. Chromium's documentation says that its network stack uses the system network settings, so Chrome, Edge and Brave follow the system proxy by default, and it provides command-line options for custom proxy settings. Firefox has its own connection settings. Extensions such as FoxyProxy and SwitchyOmega let you switch proxies inside the browser, and a proxy extension can see the traffic it manages, so install only ones you trust. Our guides cover Chrome, Firefox, Microsoft Edge, Brave, Safari, FoxyProxy and SwitchyOmega.
A system-wide setting does not reach everything. Some command-line tools and runtimes ignore it, as the Node.js result shows.
Mistakes that cost an afternoon
- Using
https://for the proxy URL. The scheme describes how you talk to the proxy and not what the site uses. For ProxyOnly it ishttp://. - Leaving special characters in the password. The next section shows what happens.
- Putting credentials in code. Keep them in an environment variable or a password manager, and not in source files or shared documents.
- Forgetting
NO_PROXYfor local addresses, so that requests to your own machine go out to the proxy and fail. - Typing the wrong country code. The United Kingdom is
gband notuk, as the guide to choosing the exit country explains, and the country codes tool lists them. - Assuming a system setting covers a tool. Test the tool.
Special characters in passwords
A proxy URL puts the password between a colon and an at sign, so characters that have a meaning in a URL can break it. We tested a password that contains an at sign, a slash and a colon against curl 8.7.1. curl failed with the raw at sign, and it failed with the raw slash and reported "Unsupported proxy syntax". A raw colon worked, because only the first colon splits the user name from the password. Python requests accepted the raw at sign. Tools differ, so the safe rule is to percent-encode the password:
from urllib.parse import quote
print(quote("p@ss:w/rd", safe=""))It prints p%40ss%3Aw%2Frd. With the encoded form, curl and requests both worked.
Find your tool's guide
Our directory has 72 setup guides in six groups. Each one gives the exact setup, a working example, country and session options and a troubleshooting list.
- Libraries and frameworks (29): Python Requests, HTTPX, aiohttp, Scrapy, Selenium, Playwright for Python, Playwright for Node.js, Puppeteer, Node.js fetch, Axios, Go net/http, PHP cURL, Java HttpClient, C# HttpClient, Rust reqwest and more.
- Command line tools (14): curl, wget, HTTPie, Git, npm, pip, Docker, PowerShell, yt-dlp and more.
- Browsers and extensions (7), as listed above.
- Operating systems and network tools (5): the four systems above and Proxifier.
- Developer and testing tools (9): Postman, Insomnia, Burp Suite, Charles Proxy, Screaming Frog, Apache JMeter, k6 and more.
- Anti-detect browsers (8): Multilogin, GoLogin, AdsPower, Dolphin Anty and more.
If your tool is not listed, use the curl guide to confirm your values, and then look for a proxy setting that takes a host, a port, a username and a password.
After the setup
Check what the world sees. The what is my IP tool shows the address a site gets, and the country guide explains why to read it in two different lookup tools, because their databases do not always agree. If you use a browser, also check for leaks, as DNS and WebRTC leaks describes. If a proxy does not behave, the quick-start guide to fixing common proxy errors gives the order in which to check things, and the complete guide to proxy types helps you choose what to set up next.
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 · Tutorials
Python HTTP clients compared: requests vs httpx vs aiohttp
A tested comparison of requests, httpx and aiohttp, including a benchmark where the run-to-run noise turned out to be larger than the gap people argue about.
25 Nov 2026 · Tutorials
How to find your proxy server address and port
Find the proxy your machine is already configured to use on Windows, macOS, Linux and in browsers, or find the host and port of a proxy you bought.