Send requests through an HTTP proxy.
Section: Debugging and Diagnostics
Use an HTTP proxy
bash
bash
curl -x http://proxy.example.com:8080 https://example.comExplanation
Use `-x` / `--proxy` for HTTP, HTTPS, SOCKS, and related proxies.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Debugging and Diagnostics
Limit total transfer time
Abort the request after a fixed total duration.
Override DNS resolution
Map a hostname and port to a specific IP address.