Using a very basic PHP/CodeIgniter script, I've set up a simple
webhook for testing purposes, but whenever the hook is called, no
$_POST data is set at all. The global
$_POST array is completely empty. I know this because
I've set up a check that basically goes like this:
if(count($_POST) === 0)
{
$message = "No POST data";
}
else
{
foreach($_POST as $k => $v) //.. compile a message
}
The $message always gets set to No POST
data.
Am I missing something about webhooks or am I completely doing this wrong?
I would really appreciate any help at all. Thanks in advance.

#1 Posted by Hobson on 11 Jun, 2010 08:23 PM
In PHP raw POST data is accessed using the $HTTP_RAW_POST_DATA global. The $_POST var is only for form input.
Hope this helps,
-hobson
Will closed this discussion on 18 Aug, 2010 10:16 PM.