Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does `curl -e` or `curl --referer` mean?

Tags:

bash

shell

curl

I've seen some example :-

curl --referer http://example.com/bot.html http://www.cyberciti.biz/

what is the different if I use curl http://www.cyberciti.biz/

shell script type:-

curl -e http://example.com/bot.html \ 
'http://www.cyberciti.biz/'

what is \ for?

like image 371
taymedee Avatar asked May 01 '14 14:05

taymedee


People also ask

What is curl referer?

The curl client / command can send the “Referer Page” information to the Web (HTTPD) server. By default, when visiting a webpage using any HTTP client, the referrer or referring page is the URL of the previous webpage from which a link was followed.

What curl stands for?

cURL, which stands for client URL, is a command line tool that developers use to transfer data to and from a server. At the most fundamental, cURL lets you talk to a server by specifying the location (in the form of a URL) and the data you want to send.

What is a curl call?

'cURL' is a command-line tool that lets you transmit HTTP requests and receive responses from the command line or a shell script. It is available for Linux distributions, Mac OS X, and Windows. To use cURL to run your REST web API call, use the cURL command syntax to construct the command.

What does a curl do?

curl (short for "Client URL") is a command line tool that enables data transfer over various network protocols. It communicates with a web or application server by specifying a relevant URL and the data that need to be sent or received. curl is powered by libcurl, a portable client-side URL transfer library.


1 Answers

From the man page of cURL

-e, --referer <URL>

(HTTP) Sends the "Referrer Page" information to the HTTP server. This can also be set with the -H, --header flag of course. When used with -L, --location you can append ";auto" to the --referer URL to make curl automatically set the previous URL when it follows a Location: header. The ";auto" string can be used alone, even if you don't set an initial --referer.

Essentially this tells the server which page sent you there.

like image 146
Mike Furlender Avatar answered Sep 22 '22 18:09

Mike Furlender