1. Use file_get_contents('php://input') to get data. If it cannot be obtained, it may be a data transmission error. Capture the request packet and analyze the data.
2. If file_get_contents('php://input') has data. Then check the php.ini configuration file.
Find the following, if not enabled, enable it
always_populate_raw_post_data = On
The above introduces how to exclude $GLOBALS ["HTTP_RAW_POST_DATA"] if the value cannot be obtained, including global and http aspects. I hope it will be helpful to friends who are interested in PHP tutorials.