I had a similar problem, and using the option --socks5-hostname instead of --socks5 to specify the proxy for curl solved the issue.
I had a similar problem, and using the option --socks5-hostname instead of --socks5 to specify the proxy for curl solved the issue.