file_get_contents('php://input');
{"_id":"","url":"http://asda.com","title":"asdasd"}And then return this:
public function post_add() { $this->response(print_r($_POST)); }All I get in my response is:
Array ( ) trueMany thanks spreech
Ran Yefet wrote on Saturday 1st of October 2011:If your using Firefox, open up firebug and go to "Net" tab.
See how the request is sent and if all your data is actually sent to the right place.
file_get_contents('php://input');returns the posted JSON correctly. There may be a better way to achieve this without having to use the above but it has given me a way to get my app working in the meantime. cheers for your help guys. spreech
It looks like you're new here. If you want to get involved, click one of these buttons!