Reading Raw Post Data in PHP

Perhaps you’d like to just sent XML over post, and not have xml=your_nodes_and_stuff_here. No sweat.

$xml = urldecode(file_get_contents('php://input'));

Enjoy.

This can now be called with:

curl -d "some_xml_here" http://yoursite.com/pagename