Skip to content
curl

Proxies

Route requests through HTTP or SOCKS proxies.

#proxy#socks#tunnel

Code

curl
# HTTP proxy
curl -x http://proxy.local:8080 https://example.com

# SOCKS5 proxy
curl --socks5 127.0.0.1:1080 https://example.com

# Proxy with authentication
curl -x http://user:[email protected]:8080 https://example.com

# Bypass the proxy for a specific host
curl --noproxy "internal.local" https://internal.local

# Send through a proxy and follow redirects
curl -L -x http://proxy.local:8080 https://example.com