file_get_contents("php://input") or $HTTP_RAW_POST_DATA, which one is better to get the body of JSON request?
And which request type (
From a protocol perspectiveis actually more correct, since you're not really processing http multipart form data anyway.
php://input allows you to read raw POST data.
It is a less memory intensive alternative to $HTTP_RAW_POST_DATA and does not need any special php.ini directives.
php://input is not available with