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 'http://url.goes.here' \
--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
Paul

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.

Cheers
Paul

–data-raw is the same as -d, see https://curl.se/docs/manpage.html

Thanks Mike.

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

Paul

Yes this should work.