For those of you without the HTTP extension, try:
<?php
$body = @file_get_contents('php://input');
?>
(PECL pecl_http >= 0.10.0)
HttpResponse::getRequestBody — Get request body
This function is an alias of: http_get_request_body().
For those of you without the HTTP extension, try:
<?php
$body = @file_get_contents('php://input');
?>