Due to this problem I have summarized the error in the most basic example to find a solution. I have a PHP file with the following code:
if( isset($_POST['nombre']) ){
echo("Do thing");
}
else{
echo("Error");
}
If I send the NAME data from a post form, it enters the IF without problem. If from Postman I try to send a data from BODY FORM-DATA or x-www.form.urlencoded, the POST arrives without problem and enters the IF.
{"nombre": "fdsf"}
But if I send a JSON from postman, something like $_POST['name'] comes back empty and being empty does not enter the IF
Does anyone know why it happens?.