Request
PHP Http Function: Request
Categories:
Get “Content-Type” header
$_SERVER["CONTENT_TYPE"];
Receive JSON POST
// Takes raw data from the request
$json = file_get_contents('php://input');
// Converts it into a PHP object
$data = json_decode($json);