3

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.

1
  • --referer takes an argument. A referer is an URL, not a binary property. Commented Aug 31, 2017 at 20:03

2 Answers 2

6

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.

0
-1

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
1
  • 3
    Welcome to the site, and thank you for your contribution. Please note that your answer seems to reiterate what was already stated in the accepted answer. You may want to consider expanding it so that the difference to that answer becomes more visible; otherwise it would be best paced as a comment to that answer (once you have sufficient reputation).
    – AdminBee
    Commented Jul 13, 2021 at 12:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .