Libcurl data-raw option

Is there an option in the excellent libcurl library to send data using the data-raw option as shown below:

curl --location --request POST '' \
--header 'Authorization: Bearer secret-password-here' \
--header 'Content-Type: application/json' \
--data-raw '{
    "companyName": "Test Company",
    "year": "2021",
    "month": "10",
    "quoteCount": "15",

Thanks in advance

See topmost answer from here (-d option is the same as --data-raw):

Thanks Mike.

However, my question is specifically about the “–data-raw” part of the command.

I can’t see a reference to that in your link.


–data-raw is the same as -d, see

Thanks Mike.

So that means I can just post the JSON in my POST string, right?


Yes this should work.