Ask coding questions

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

i just entered this in my terminal

and what i got?

am i doing something wrong here?


You are doing nothing wrong (except either use curl -o to write to or use wget like so wget which will automatically write to, 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.