需要设置php.ini中的always_populate_raw_post_data值为On才可以。
<?php
$json = file_get_contents("php://input");
echo $json;
?>
需要设置php.ini中的always_populate_raw_post_data值为On才可以。
<?php
$json = file_get_contents("php://input");
echo $json;
?>