Submitted by NanoDano on Fri, 09/16/2016 - 11:50
Making requests with the Tor network is easy with cURL. Since Tor uses the common SOCKS5 protocol, it works well with anything that has SOCKS5 support. cURL comes with a simple command-line option to specify a proxy.
# Linux default Tor proxy port is 9050
curl --socks5-hostname localhost:9050 https://check.torproject.org
# Windows/Tor Browser Bundle default to port 9150
curl --socks5-hostname localhost:9150 https://check.torproject.org