Back to blog
Automation5 min read

curl Proxy Configuration Guide

Configure HTTP, HTTPS, and SOCKS proxies with curl — flags, env vars, auth, and debugging CONNECT tunnels.

Configure HTTP, HTTPS, and SOCKS proxies with curl — flags, env vars, auth, and debugging CONNECT tunnels.

Command-line flags

Use -x http://host:port for HTTP proxies. curl handles CONNECT for HTTPS automatically.

SOCKS proxies

--socks5-hostname resolves DNS at proxy. Prefer hostname variant for consistent egress DNS.

Related: SOCKS versions.

Environment variables

HTTP_PROXY and HTTPS_PROXY work for many scripts. ALL_PROXY sets a fallback.

Related: proxy env vars guide.

Need proxies at scale?

proxies.st offers health-checked HTTP and SOCKS pools with dashboard access, API keys, and plain-text bulk feeds for pipelines.

Related guides

Automation5 min read

wget Proxy Setup

Use wget with HTTP proxies via environment variables and .wgetrc — batch downloads through rotating pools.