Ask coding questions

← Back to all posts
download a repo as zip gives 403 on curl
whms

i just entered this in my terminal

and what i got?

am i doing something wrong here?

Voters
whms
Comments
hotnewtop
19ecal

You are doing nothing wrong (except either use curl -o whirledit.zip https://replit.com/@whms/WhirlEdit.zip to write to whirledit.zip or use wget like so wget https://replit.com/@whms/WhirlEdit.zip which will automatically write to WhirlEdit.zip, the command you entered would have printed the binary data of the zip file to your terminal which is less than useful).
The reason you are getting 403 Forbidden is that you can only download a repl you own. Normally your browser tells replit that it is you (I don't know exactly how), but when curl or wget accesses replit, replit doesn't know that it's you (it thinks you aren't signed in) and so denies you.
I do not know of a way to fix this, but that is why I think what happened happened.