Issue exporting Cases, Referrals, and Users

Hello,

I'm failing to download the Cases, Referrals, and Users using this command with the right username/password and url.

curl -v --digest -u $USERNAME '$URL' > data.zip

However, i am able to download the files through the browser when i use the url. What could the problem be?
Your help is highly appreciated.

Please find attached screenshots of the error messages received; they are in order from Page_1,Page_2,Page_3

Regards,
Lucy