xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: referer |
| 4 | Short: e |
| 5 | Arg: <URL> |
| 6 | Protocols: HTTP |
| 7 | Help: Referrer URL |
| 8 | See-also: user-agent header |
| 9 | Category: http |
| 10 | Example: --referer "https://fake.example" $URL |
| 11 | Example: --referer "https://fake.example;auto" -L $URL |
| 12 | Example: --referer ";auto" -L $URL |
| 13 | Added: 4.0 |
| 14 | Multi: single |
| 15 | --- |
| 16 | Sends the "Referrer Page" information to the HTTP server. This can also be set |
| 17 | with the --header flag of course. When used with --location you can append |
| 18 | ";auto" to the --referer URL to make curl automatically set the previous URL |
| 19 | when it follows a Location: header. The ";auto" string can be used alone, |
| 20 | even if you do not set an initial --referer. |