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.
2 Answers
+ 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.
+ 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