cURL and wget Proxy Configuration: Command Line Guide
How to use proxies with cURL and wget for command-line HTTP requests.
NobleProxy Team
Proxy Experts
cURL Proxy Setup
Use proxies with cURL for command-line HTTP requests.
TL;DR: Use -x or --proxy flag with cURL. Set HTTP_PROXY environment variable for wget.
cURL Commands
Basic Proxy
curl -x http://proxy.nobleproxy.com:8080 https://httpbin.org/ip
With Authentication
curl -x http://username:password@proxy.nobleproxy.com:8080 https://httpbin.org/ip
SOCKS5 Proxy
curl --socks5 proxy.nobleproxy.com:1080 https://httpbin.org/ip
SOCKS5 with DNS Resolution
curl --socks5-hostname proxy.nobleproxy.com:1080 https://httpbin.org/ip
wget Commands
Environment Variables
export http_proxy=http://username:password@proxy.nobleproxy.com:8080
export https_proxy=http://username:password@proxy.nobleproxy.com:8080
wget https://example.com
Direct Flag
wget -e use_proxy=yes -e http_proxy=proxy.nobleproxy.com:8080 https://example.com
Verify Connection
curl -x http://proxy:port https://httpbin.org/ip
Should return the proxy's IP address.
Written by NobleProxy Team
Proxy Experts
The NobleProxy team writes practical guides for dedicated static residential proxies, persistent browser profiles, and agency account operations.