I have a Lora device sending Post Data. I have tested it on Free site called
https://webhook.site/#!/7365fbd2-1915-4668-b697-626f5eddb20e/8cfd61c3-9240-44bc-b683-bbb02b285ab9/1
Its receiving data like this image
but when I try to use it in my PHP with below code
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
file_put_contents('aa.txt',json_encode($_POST, true));
}
?>
Its log empty array like this
[]
I am not getting idea whats wrong with it and How I can solve it. Let me know if anyone can help me for same. Thanks!