$POSTSTR = $GLOBALS ["Http_raw_post_data"];d UMP ($POSTSTR), $postStr 2 = file_get_contents ("php://input");d UMP ($ POSTSTR2);
For the first case of hair output is null, the second can be output, but it seems that is not what I want.
I didn't use the first one before, so I don't know what the result of the first kind of output is, and it's exactly the same as $_post.
Reply to discussion (solution)
$GLOBALS [' Http_raw_post_data ']: always produces $HTTP _raw_post_data variable contains the original POST data. This variable is only generated when it encounters data that does not recognize the MIME type. $HTTP _raw_post_data is not available for enctype= ' multipart/form-data ' form data.
That is to say, basically $globals[' http_raw_post_data ' is the same as $_post.
But if the POST data is not recognized by PHP, you can use $GLOBALS [' Http_raw_post_data '] to receive it, such as text/xml or soap, etc.
I see
The landlord understand what