I'm trying to get header content from a json post request. But I can't seem to find a method for it in the requesthandler...
print_r($this->request);
doesn't show anything useful.
I've tried
$this->request['head'];
$this->request['header'];
$this->request->getHeaders;
None of which work
You can access the headers using:
$this->request->header('User-Agent');
http://book.cakephp.org/2.0/en/controllers/request-response.html#CakeRequest::header