Login as root and then run the curl command. However, review security before running a curl command as root.
sudo -i