To use #Tor with #curl, use --socks5-hostname or the socks5h:// scheme for the hostname set with -x / --proxy.
curl has worked fine for Tor transfers for decades.
Those options make curl tell the proxy to do the name resolving instead of doing it itself.