Route a request through a SOCKS5 proxy.
Section: Debugging and Diagnostics
Use a SOCKS5 proxy
bash
bash
curl --socks5 localhost:1080 https://example.comExplanation
Useful for debugging network routes or tunneled access.
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.
Redirect one host:port to another
Change where curl connects without changing the URL's host name.