• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: referer
5Short: e
6Arg: <URL>
7Protocols: HTTP
8Help: Referrer URL
9Category: http
10Added: 4.0
11Multi: single
12See-also:
13  - user-agent
14  - header
15Example:
16  - --referer "https://fake.example" $URL
17  - --referer "https://fake.example;auto" -L $URL
18  - --referer ";auto" -L $URL
19---
20
21# `--referer`
22
23Sends the "Referrer Page" information to the HTTP server. This can also be set
24with the --header flag of course. When used with --location you can append
25";auto" to the --referer URL to make curl automatically set the previous URL
26when it follows a Location: header. The ";auto" string can be used alone,
27even if you do not set an initial --referer.
28