Testing the PUSH notification, server sends empty POST

I’m testing the push notification feature of the flightXML API using this tool: flightaware.com/commercial/flightxml/send.rvt

However, the server sends a request to the specified endpoint, which ends up at the right place, but there is no data send. I’m using PHP, and when I’m outputting the $_POST array to a file, it’s empty.

Any ideas?

The $_POST array should not be used, since that actually represents the parsed form variables. You need to read the raw POST body using something like this:


$postdata = file_get_contents("php://input")

Alright, that did the trick. Thanks!