I am trying to send json values with a url by POST but I am not getting any value.
local test: http://127.0.0.1/test.php
with postman I send inside the body:
key: Token Value: xxyyz
my service code:
error_reporting(E_ALL);
ini_set('display_errors', 1);
error_reporting(E_ALL);
header("Access-Control-Allow-Origin: *");
header('Content-Type: application/json');
$data = file_get_contents('php://input');
$arrayData = json_decode($data);
var_dump($arrayData);
Return NULL, How can I return the values?