WordPress curl timing out and saying ‘Moved Permanently’

For both your curl examples, the error is that your target is http: and not https:

Either add https to the address, or use

curl http://downloads.wordpress.org/release/wordpress-5.6-new-bundled.zip -L

-L will follow redirects