I have PHP application try to get post JSON in 'php://input' using 'file_get_contents' function. Only empty string return. Below is the full code line.
$_PUT = json_decode(file_get_contents("php://input"), true);
Or i need to change any apache/php settings?
'Content-Type': 'application/x-www-form-urlencoded''Content-Type': 'application/json'. Make sure you track the request, for example in google chrome network tab, to ensure you are actually sending a request body