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 %{JSON}

From: Коваленко Анатолий Викторович via curl-users <>
Date: Wed, 20 May 2020 20:35:41 +0300

Sorry, is there any other output beyond «Saved to filename» and «--write-out»?

Now I can see THREE variants (in terms of PowerShell):
1) [String] (i.e. scalar) JSON when «-w %{JSON}»;
2) [String[]] (i.e. array of TWO strings – «Saved to filename» and «JSON») when «-w %{JSON}» and
3) array of MANY strings when «-w %{Not-JSON}».

Sorry my English, please.

> On Wed, 20 May 2020, Коваленко Анатолий Викторович via curl-users wrote:

>> curl: Saved to filename 'utweb_installer.exe'
>> An additional first line interferes with the conversion from JSON.

> Indeed. I think we should completely remove that output - which is shown when
> -J is used to select a file name. I'll file a PR to that effect.

Received on 2020-05-20