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: JSON support

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Thu, 20 Jan 2022 22:51:00 +0100 (CET)

On Thu, 20 Jan 2022, Pierre Brico via curl-users wrote:

> That isn't the role of curl to worry about the content of the data sent.

No? Here are a few existing options:

curl -d name=foo -d size=9 ... (when more than one -d is used)

curl -F name=foo -F file=_at_here.jpg ...

curl --data-urlencode name=$USER ...

I'm fairly sure all of these are used widely and they all do decisions and
build buffers that are "target specific" content to send.

It isn't an entirely new and foreign concept.

-- 
  / 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-01-20