In PHP, to get form inputs, $_POST can be used if the post has a key, such as name=something can be captured by $_POST['name'].
But what if it’s a raw post with only the post body and no key? Such as an xml api post?
Simple: use “php://input” as a text stream and read it with functions such as file_get_contents.
Advertisement