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: Feature request: Add 'content' field in -w %{json} output

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 22 Feb 2022 18:21:03 +0100 (CET)

On Tue, 22 Feb 2022, rs _ wrote:

> If we can use this API to obtain the body of the response as you described,
> then that would certainly work for my use case.

That API is not for returning the "body". The body in a response is typically
the entire response data (not the headers or other meta-data). The discussed
API is for accessing and returning http headers and their contents. For
example Content-Type:.

-- 
  / 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.html
Received on 2022-02-22