cURL
This guide shows how to use Evomi proxies with cURL, the command-line tool for making HTTP requests. cURL is the fastest way to test your proxy connection and is available by default on macOS, Linux, and Windows 10+.
Quick Start
HTTP Proxy
curl -x http://your_username:[email protected]:1000 https://ip.evomi.com/sHTTPS Proxy
curl -x https://your_username:[email protected]:1001 https://ip.evomi.com/sSOCKS5 Proxy
curl -x socks5h://your_username:[email protected]:1002 https://ip.evomi.com/sReplace your_username and your_password with your actual Evomi credentials (keep the _session-anychars_mode-speed parameters).
The output should display the proxy server’s IP address, not your real IP.
Syntax Options
cURL provides several ways to specify proxy settings:
Inline credentials (most common)
curl -x http://user:pass@host:port https://example.comSeparate credentials flag
curl -x http://rp.evomi.com:1000 -U your_username:your_password_session-anychars_mode-speed https://ip.evomi.com/sLong-form flags
curl --proxy http://rp.evomi.com:1000 --proxy-user your_username:your_password_session-anychars_mode-speed https://ip.evomi.com/sEnvironment variable
export https_proxy=http://your_username:[email protected]:1000
curl https://ip.evomi.com/sThis sets the proxy for all subsequent cURL requests in the current shell session.
SOCKS5: Local vs Remote DNS
socks5h://– DNS is resolved by the proxy server (recommended, prevents DNS leaks)socks5://– DNS is resolved locally before sending through the proxy
# Recommended: proxy resolves DNS
curl -x socks5h://your_username:[email protected]:1002 https://ip.evomi.com/s
# Local DNS resolution
curl -x socks5://your_username:[email protected]:1002 https://ip.evomi.com/sCommon Options
# Verbose output (shows proxy connection details)
curl -v -x http://user:[email protected]:1000 https://ip.evomi.com/s
# Set a timeout (30 seconds)
curl --connect-timeout 30 -x http://user:[email protected]:1000 https://ip.evomi.com/s
# Follow redirects
curl -L -x http://user:[email protected]:1000 https://example.com
# Custom User-Agent
curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" -x http://user:[email protected]:1000 https://example.com
# Save response to file
curl -o output.html -x http://user:[email protected]:1000 https://example.comEvomi Proxy Endpoints
| Proxy Type | HTTP | HTTPS | SOCKS5 |
|---|---|---|---|
| Residential | rp.evomi.com:1000 |
rp.evomi.com:1001 |
rp.evomi.com:1002 |
| Mobile | mp.evomi.com:3000 |
mp.evomi.com:3001 |
mp.evomi.com:3002 |
| Datacenter | dcp.evomi.com:2000 |
dcp.evomi.com:2001 |
dcp.evomi.com:2002 |
Tips and Troubleshooting
- Special characters in password: If your password contains special characters (
@,:,!), URL-encode them or use the-Uflag to pass credentials separately. - Verbose mode: Use
-vto see the full connection flow, including proxy handshake and authentication. - Connection refused: Verify the hostname and port. Make sure you are using the correct protocol (
http://vssocks5h://) for the port. - Timeout errors: Increase the timeout with
--connect-timeoutand--max-time. Proxy connections may be slower than direct connections. - Unset proxy: If you set a proxy via environment variable and want to bypass it for a single request, use
--noproxy "*".