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: Fri, 22 May 2020 00:15:10 +0200 (CEST)

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

> But I still do not know what the result will be in case of «-w %{JSON}» AND
> another variables (content_type, filename_effective, etc) together. This is
> not described in the manual.

Sure it is described. They're all "variables" so you'll get them all output.
But why would you do that if you want (valid) JSON?

> And the JSON output will always be consist from ONE line? This is not
> described in the manual too.

It will be a valid JSON object and there's no guarantee or promise how many
lines that is. It isn't something you should depend upon!

-- 
  / 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-22