mirror of
https://github.com/curl/curl.git
synced 2026-07-26 09:47:18 +03:00
write-out: add '%{proxy_used}'
Returns 1 if the previous transfer used a proxy, otherwise 0. Useful to for example determine if a `NOPROXY` pattern matched the hostname or not. Extended test 970 and 972
This commit is contained in:
parent
cc04c73677
commit
ac208ccf6f
5 changed files with 9 additions and 2 deletions
|
|
@ -138,6 +138,11 @@ The rest of the output is only shown if the transfer returned a non-zero error.
|
|||
The result of the HTTPS proxy's SSL peer certificate verification that was
|
||||
requested. 0 means the verification was successful. (Added in 7.52.0)
|
||||
|
||||
## `proxy_used`
|
||||
Returns 1 if the previous transfer used a proxy, otherwise 0. Useful to for
|
||||
example determine if a `NOPROXY` pattern matched the hostname or not. (Added
|
||||
in 8.7.0)
|
||||
|
||||
## `redirect_url`
|
||||
When an HTTP request was made without --location to follow redirects (or when
|
||||
--max-redirs is met), this variable shows the actual URL a redirect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue