0
I am trying to receive in PHP a Json via POST and display it on the screen, the Json is sent through an API that does not have access to the script you send, I am trying to print on the screen everything I receive and then proceed, know that it is sent through the POST and Content-Type method: application/json; charset=UTF-8
<?php
header("Access-Control-Allow-Origin: *");
header('Cache-Control: no-cache, must-revalidate');
header("Content-Type: application/json; charset=UTF-8");
print_r($_POST);
?>
But always returns the error "Unexpected 'A'".
Victor thanks for the help but also failed so I managed to find the solution and posted below.
– Daniel Plácido