Setup Guides · 1 min read
cURL and wget Proxy Configuration: Command Line Guide
How to use proxies with cURL and wget for command-line HTTP requests.
NobleProxy Team · Updated
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.
ProductStatic residentialOne dedicated proxy per account on a real home connection, with the same IP for the full term.Details ProductRotating residentialA new home IP on every request or sticky sessions up to 24 hours, in 116 countries.Details
#cURL #wget #command-line