referer.d 717 B

1234567891011121314151617181920
  1. c: Copyright (C) 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.