I had trouble at first with your example code on PHP 7 — I was receiving an empty $_POST array. Sending lower case ‘post’ was recognized using the file_get_contents(‘php://input’) method, but was *not* recognized via the $_POST function. Sending upper case ‘POST’ was recognized by both methods.