2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
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
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Sends the "Referrer Page" information to the HTTP server. This can also be set
|
2021-11-26 15:46:59 +08:00
|
|
|
with the --header flag of course. When used with --location you can append
|
2016-11-16 06:44:58 +08:00
|
|
|
";auto" to the --referer URL to make curl automatically set the previous URL
|
2022-08-23 19:42:49 +08:00
|
|
|
when it follows a Location: header. The ";auto" string can be used alone,
|
2021-10-31 23:34:44 +08:00
|
|
|
even if you do not set an initial --referer.
|