Threat Level: green Handler on Duty: Rob VandenBrink

SANS ISC: curl 7.82.0 Adds --json Option - SANS Internet Storm Center SANS ISC InfoSec Forums

Participate: Learn more about our honeypot network
https://isc.sans.edu/honeypot.html

Sign Up for Free!   Forgot Password?
Log In or Sign Up for Free!
curl 7.82.0 Adds --json Option

Curl's version 7.82.0, released early March 2022, has a new option to deal with JSON data: --json.

It's actually a combination of the following options:

--data
--header "Content-Type: application/json"
--header "Accept: application/json"

 

Notice that curl does not check if the provided data is a valid JSON expression:

More JSON features may be added to curl in the future, but that debate is still ongoing.

 

Didier Stevens
Senior handler
Microsoft MVP
blog.DidierStevens.com

DidierStevens

638 Posts
ISC Handler
Apr 2nd 2022

Sign Up for Free or Log In to start participating in the conversation!