Undefined index: HTTP_RAW_POST_DATA的解决办法

$postStr = $GLOBALS["HTTP_RAW_POST_DATA"];

替换为
$postStr = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input")
 
 
原文地址:https://www.cnblogs.com/ghjbk/p/6861243.html