I've been looking during a week on the internet all kind of answers to the way of receive the data from and http post, but none of them help me, I'm receiving data from a server which is posting by http post to mine the connection is working and its seems the is sending OK the HTTP POST, but I can't find the way of showing the information, the JSON structure of what is posting is something like this :
{"decodes":[{"id" : 64,"rmv" : "xxxxx","frameID" : xxxxx,"spaced" : "xxxxx", "SF":"xxxxxx"}] }
I've tried to read in all ways the most simple with:
file_get_contents(php://input);
echo '<pre>';
print_r($_POST);
$data = json_decode(file_get_contents('php://input'), true);
print_r($_POST);
var_dump($_POST);
I only received or empty Array
or NULL
, I'm very frustrated I don't know what I'm I missing, there is a guy who has this website where you can try to make your http post there, and when I point there is working perfectly and he received with no problems.