referer.d 784 B

123456789101112131415161718192021
  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. ---
  15. Sends the "Referrer Page" information to the HTTP server. This can also be set
  16. with the --header flag of course. When used with --location you can append
  17. ";auto" to the --referer URL to make curl automatically set the previous URL
  18. when it follows a Location: header. The \&";auto" string can be used alone,
  19. even if you do not set an initial --referer.
  20. If this option is used several times, the last one will be used.