It looks like you copied the command from a website and
-L
was conveted to
–L
It looks very similar in the code blocks, but the first “-” is a little shorter
-L
–L
It is more noticable when you copy it and paste it into an input field or you compare the characters while you are writing the post here. Replace that character with a simple “-” typing directly in the terminal. Since it is not a valid flag this way, curl “thinks” it is a URL and it is not a valid URL either.
After fixing it, you will probably have an other problem as well. -output will not be a valid option. You need two “-” characters like: --output