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