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: Feature request: Add 'content' field in -w %{json} output
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 23 Feb 2022 09:45:15 +0100 (CET)
On Tue, 22 Feb 2022, rs _ wrote:
> The current output is usually enormous and not parsable
Most users don't want nor need the body as json. Not even among those that
extract meta-data using json. If you download a terrabyte file and want some
metadata extracted from that transfer in json, I don't think it's fair to
force those users to throw all that data - by default - through their json
parser if all they want is %{content_type}.
> For what it's worth, this small script mimics the intended behavior:
Try that with a terrabyte download! =)
> I still think it would be extremely useful to have this output as an option
> in curl (maybe as an additional <format>: %{json+full}), but maybe there is
> not enough support for this feature.
I haven't objected to it, but I probably won't work on it myself in 2022.
Date: Wed, 23 Feb 2022 09:45:15 +0100 (CET)
On Tue, 22 Feb 2022, rs _ wrote:
> The current output is usually enormous and not parsable
Most users don't want nor need the body as json. Not even among those that
extract meta-data using json. If you download a terrabyte file and want some
metadata extracted from that transfer in json, I don't think it's fair to
force those users to throw all that data - by default - through their json
parser if all they want is %{content_type}.
> For what it's worth, this small script mimics the intended behavior:
Try that with a terrabyte download! =)
> I still think it would be extremely useful to have this output as an option
> in curl (maybe as an additional <format>: %{json+full}), but maybe there is
> not enough support for this feature.
I haven't objected to it, but I probably won't work on it myself in 2022.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-02-23