0

How to store HTTP POST request

Hello everyone. I want to make HTTP POST request from my C++ program to my localhost webserver. C++ code is OK but i can't make the website to view every POST request and save it somewhere. In the PHP tutorials i can't find example how to do it. If anyone know how to build my website pleace give me some example to follow.

28th Mar 2017, 4:38 PM
Martin Markov
Martin Markov - avatar
2 ответов
+ 4
to check if your program works, let it call the following php snippet on your server: <?php print_r($_POST); ?> if your data is in there, your program successfully transmits data via post.
28th Mar 2017, 6:35 PM
Mario L.
Mario L. - avatar
+ 2
have a look at this SO thread: the only answer has some useful tips on how to correctly compose and send a POST request: http://stackoverflow.com/questions/11461962/sending-post-request
28th Mar 2017, 8:47 PM
seamiki
seamiki - avatar