La maggior parte degli header sono accessibili tramite $_SERVER.
Il body lo puoi ottenere tramite questo codice:
Oppure, se abilitato, tramite $HTTP_RAW_POST_DATA (vedi http://www.php.net/manual/en/ini.cor...-raw-post-data).Codice PHP:<?php $body = file_get_contents('php://input'); ?>
Sotto Apache potresti usare anche anche http://www.php.net/apache_request_headers

Rispondi quotando