From e431daf013ea04cb1a988a2009d820224ef5fb79 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 8 Oct 2018 23:54:01 +0200 Subject: curl: add %{stderr} and %{stdout} for --write-out Closes #3115 --- docs/cmdline-opts/write-out.d | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/cmdline-opts') diff --git a/docs/cmdline-opts/write-out.d b/docs/cmdline-opts/write-out.d index 3747845cc..2fc0ff21a 100644 --- a/docs/cmdline-opts/write-out.d +++ b/docs/cmdline-opts/write-out.d @@ -15,6 +15,9 @@ text that curl thinks fit, as described below. All variables are specified as output a newline by using \\n, a carriage return with \\r and a tab space with \\t. +The output will be written to standard output, but this can be switched to +standard error by using %{stderr}. + .B NOTE: The %-symbol is a special symbol in the win32-environment, where all occurrences of % must be doubled when using this option. @@ -103,6 +106,15 @@ second. The result of the SSL peer certificate verification that was requested. 0 means the verification was successful. (Added in 7.19.0) .TP +.B stderr +From this point on, the --write-out output will be written to standard +error. (Added in 7.63.0) +.TP +.B stdout +From this point on, the --write-out output will be written to standard output. +This is the default, but can be used to switch back after switching to stderr. +(Added in 7.63.0) +.TP .B time_appconnect The time, in seconds, it took from the start until the SSL/SSH/etc connect/handshake to the remote host was completed. (Added in 7.19.0) -- cgit v1.2.3