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: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 21 May 2020 00:11:14 +0200 (CEST)

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

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

You mean *ever* ? Yes. But in for your use case? I don't think so...

> 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
> uTorrent/balenaEtcher;
> 3) array of MANY strings when «-w %{Not-JSON}».

I don't understand.

Are you saying that there still is other output to stdout apart from the JSON
output with your command line when you have PR 5435 [*] applied? If so, can
you show us what output that is, how it looks when you run the commands?

[*] = https://github.com/curl/curl/pull/5435

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-21