[UPHPU] print raw http headers and body
Jon Jensen
jon at jenseng.com
Mon Oct 23 19:59:54 MDT 2006
> I found getallheaders() which works very well for the
> headers, but I have not found an equivalent for the http
> body. Any suggestions?
I'm assuming you are referring to POST requests, as GET's have no request
body.
Check out php://input (http://us3.php.net/manual/en/wrappers.php.php)
Another alternative, though less efficient, is
$GLOBALS['HTTP_RAW_POST_DATA'].
Jon
More information about the UPHPU
mailing list