Section: Debugging and Diagnostics

Use an HTTP proxy

bash
bash
curl -x http://proxy.example.com:8080 https://example.com
Explanation

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 connect time
Fail if the connection cannot be established quickly.
OpenIn sheetbashsame section
Use a SOCKS5 proxy
Route a request through a SOCKS5 proxy.
OpenIn sheetbashsame section
Force IPv4
Resolve and connect using IPv4 only.
OpenIn sheetbashsame section
Force IPv6
Resolve and connect using IPv6 only.
OpenIn sheetbashsame section
Limit total transfer time
Abort the request after a fixed total duration.
OpenIn sheetbashsame section
Override DNS resolution
Map a hostname and port to a specific IP address.
OpenIn sheetbashsame section