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