curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: -w, --write-out option

From: Daniel Stenberg via curl-users <>
Date: Mon, 2 Mar 2020 11:08:39 +0100 (CET)

On Mon, 2 Mar 2020, Коваленко Анатолий Викторович via curl-users wrote:

> 1) curl.exe -I -w Report:АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ\nscheme\t%{scheme}
> Can I decode «└┴┬├─┼и╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀»?

I don't know what that is.

> 2) Can I separate «write-out» from HTTP-head but not mix with «StdErr»?
> Can I write to other file?

I recommend redirecting the content download to somewhere with -o and then
redirect the -w output with '>'. Or use '%{stderr}' in the -w string and get
it sent to stderr instead.

  / | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features

Received on 2020-03-02