La maggior parte degli header sono accessibili tramite $_SERVER.
Il body lo puoi ottenere tramite questo codice:

Codice PHP:
<?php $body file_get_contents('php://input'); ?>
Oppure, se abilitato, tramite $HTTP_RAW_POST_DATA (vedi http://www.php.net/manual/en/ini.cor...-raw-post-data).

Sotto Apache potresti usare anche anche http://www.php.net/apache_request_headers