mirror of
https://github.com/curl/curl.git
synced 2026-07-22 16:57:16 +03:00
curl: add %header{name} support in -w handling
Outputs the response header 'name'
This commit is contained in:
parent
d1e4a67734
commit
2d45137e1e
2 changed files with 19 additions and 1 deletions
|
|
@ -22,6 +22,10 @@ output a newline by using \\n, a carriage return with \\r and a tab space with
|
|||
The output will be written to standard output, but this can be switched to
|
||||
standard error by using %{stderr}.
|
||||
|
||||
You can also access HTTP headers of the most recent request done, with the
|
||||
help of \fB%header{name}\fP where \fBname\fP is the case insensitive name of
|
||||
the header (without trailing colon). Added in curl 7.83.0.
|
||||
|
||||
.B NOTE:
|
||||
The %-symbol is a special symbol in the win32-environment, where all
|
||||
occurrences of % must be doubled when using this option.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue