Curl: no URL Specified (Even though there is a URL)

enter image description here

As seen in the image I am using the curl command appropriately with URL but still there is an error. What is the issue?

I am following this tutorial:

1

2 Answers

You have substituted -o (lower case) in place of -O (upper case), causing the URL to be interpreted as the name of an output file. From man curl:

 -o, --output <file> Write output to <file> instead of stdout.

versus

 -O, --remote-name Write output to a local file named like the remote file we get.

The -o (small alphabet o) is used to output to a file. When you use this option curl uses the next argument as the name of file and expects another argument for the URL.

The tutorial that you have mentioned uses the -O (capital alphabet O) option. You can learn more about these by running

curl --help

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like