mirror of
https://github.com/curl/curl.git
synced 2026-08-02 10:30:28 +03:00
writeout: add %{certs} and %{num_certs}
Let users get the server certificate chain using the command line Closes #10019
This commit is contained in:
parent
db5f833cc7
commit
c6aa19c1da
7 changed files with 77 additions and 2 deletions
|
|
@ -37,6 +37,10 @@ occurrences of % must be doubled when using this option.
|
|||
The variables available are:
|
||||
.RS
|
||||
.TP 15
|
||||
.B certs
|
||||
Output the certificate chain with details. Supported only by the OpenSSL,
|
||||
GnuTLS, Schannel, NSS, GSKit and Secure Transport backends (Added in 7.88.0)
|
||||
.TP
|
||||
.B content_type
|
||||
The Content-Type of the requested document, if there was any.
|
||||
.TP
|
||||
|
|
@ -89,6 +93,11 @@ The local port number of the most recently done connection. (Added in 7.29.0)
|
|||
.B method
|
||||
The http method used in the most recent HTTP request. (Added in 7.72.0)
|
||||
.TP
|
||||
.B num_certs
|
||||
Number of server certificates received in the TLS handshake. Supported only by
|
||||
the OpenSSL, GnuTLS, Schannel, NSS, GSKit and Secure Transport backends (Added
|
||||
in 7.88.0)
|
||||
.TP
|
||||
.B num_connects
|
||||
Number of new connects made in the recent transfer. (Added in 7.12.3)
|
||||
.TP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue