No POST data seems to be sent with webhook

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. 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

  2. Will closed this discussion on 18 Aug, 2010 10:16 PM.

Discussions are closed to public comments.
If you need help with Tender please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac