mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
68784d73c3
The file format for each option now features a "Example:" header that can provide one or more examples that get rendered appropriately in the output. All options MUST have at least one example or gen.pl complains at build-time. This fix also does a few other minor format and consistency cleanups. Closes #7654
19 lines
671 B
Makefile
19 lines
671 B
Makefile
Long: referer
|
|
Short: e
|
|
Arg: <URL>
|
|
Protocols: HTTP
|
|
Help: Referrer URL
|
|
See-also: user-agent header
|
|
Category: http
|
|
Example: --referer "https://fake.example" $URL
|
|
Example: --referer "https://fake.example;auto" -L $URL
|
|
Example: --referer ";auto" -L $URL
|
|
---
|
|
Sends the "Referrer Page" information to the HTTP server. This can also be set
|
|
with the --header flag of course. When used with --location you can append
|
|
";auto" to the --referer URL to make curl automatically set the previous URL
|
|
when it follows a Location: header. The \&";auto" string can be used alone,
|
|
even if you don't set an initial --referer.
|
|
|
|
If this option is used several times, the last one will be used.
|