2016-11-16 06:44:58 +08:00
|
|
|
Long: referer
|
2016-11-28 08:01:13 +08:00
|
|
|
Short: e
|
2016-12-17 05:01:01 +08:00
|
|
|
Arg: <URL>
|
2016-11-16 06:44:58 +08:00
|
|
|
Protocols: HTTP
|
2017-03-11 18:44:06 +08:00
|
|
|
Help: Referrer URL
|
2016-11-16 06:44:58 +08:00
|
|
|
See-also: user-agent header
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: http
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --referer "https://fake.example" $URL
|
|
|
|
Example: --referer "https://fake.example;auto" -L $URL
|
|
|
|
Example: --referer ";auto" -L $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 4.0
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Sends the "Referrer Page" information to the HTTP server. This can also be set
|
|
|
|
with the --header flag of course. When used with --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.
|
|
|
|
|
|
|
|
If this option is used several times, the last one will be used.
|