test1670: verify -w %header{}

This commit is contained in:
Daniel Stenberg 2022-03-17 23:07:56 +01:00
parent 4133a69f2d
commit 62b60ed1a0
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 64 additions and 3 deletions

View file

@ -22,9 +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.
Output HTTP headers from the most recent request by using \fB%header{name}\fP
where \fBname\fP is the case insensitive name of the header (without the
trailing colon). The header contents are exactly as sent over the network,
with leading and trailing whitespace trimmed. Added in curl 7.83.0.
.B NOTE:
The %-symbol is a special symbol in the win32-environment, where all