Why I can't do curl --referer
in my machine?
When I do curl -i --referer https://google.com
All I got is this:
curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information
I am using Ubuntu 16.04.3 LTS.
As stated in man curl
:
curl [options] [URL...]
--referer
is an option that takes an argument, and https://google.com
is the argument for it. You didn't provide any URL to fetch.
you have not entered the url where the request will be sent
$ curl --referer <Referer_URL> <target_URL>
Example:
$ curl --referer http://google.com http://example.com
--referer
takes an argument. A referer is an URL, not a binary property.