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 <>
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!

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

Received on 2020-05-22