How to use libcurl for HTTP post?

c, libcurl

Solution

Refer the manual page for documentation the `-d` option. You can use that multiple times to pass different key,value pairs to the server. Once that works, use the `--libcurl` flag to see what it would look like if you're trying to use libcurl to manually do this in your application.

Problem

I am new using libcurl. I am not understanding clearly how to use it for HTTP POST requests and how to check the result. How can I use it for this?

Original source