'sending http post request in c with wininet.h

i want to send a http post request in c with the wininet.h library.

But i dont know how to do this. I only find c++ tutorials everywhere but none for c. Can someone show me how to do this?

I appreciate any help.



Solution 1:[1]

I recommend you to read "Unix network Programming" Vol 1 (Richard Stevens et al) It shows you how to use C for networking purposes. Also reading the HTTP protocol specifications, which describes how to connect to a web server and how a POST method is composed and handled. You don't post any code, so it's very difficult to help you from here, leaving us only to direct you to a good source of information (the ones cited here are)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Luis Colorado