To get the Raw Post Data:
<?php $postdata = file_get_contents("php://input"); ?>
Please see the notes here:
http://us.php.net/manual/en/wrappers.php.php
$HTTP_RAW_POST_DATA — 原生POST数据
This feature was DEPRECATED in PHP 5.6.0, and REMOVED as of PHP 7.0.0.
$HTTP_RAW_POST_DATA 包含 POST 提交的原始数据。参见 always_populate_raw_post_data
一般而言,使用
php://input
代替 $HTTP_RAW_POST_DATA。
To get the Raw Post Data:
<?php $postdata = file_get_contents("php://input"); ?>
Please see the notes here:
http://us.php.net/manual/en/wrappers.php.php