You should definitely use torsocks curl
here since, because curl --socks5
does NOT use the given SOCKS proxy to resolve DNS name. See torsocks documentation for more specifics. Also, you can use usewithtor [application]
instead of torsocks [application]
.