I am using libcurl. I know how to send form data. I want, however, to send a "request payload", but I have no idea how to.
This is what an example of what I am trying to do, in Chrome Developer Tools: View image
Can anyone please help me?
I am using libcurl. I know how to send form data. I want, however, to send a "request payload", but I have no idea how to.
This is what an example of what I am trying to do, in Chrome Developer Tools: View image
Can anyone please help me?
The command-line version of what you want would be something akin to:
curl --header "Content-Type: application/json" --data '{"data":"blob"}' http://address.com
(you'll probably want to include cookie information for authentication too)
I don't know how well that translates to libcurl, but that's the essence sending a request payload with curl.