public function getCookieCSRFToken() { $CsrfCookie = $this->Request->getCookie($this->csrf_cookie); if (empty($CsrfCookie)) { return false; } return $CsrfCookie->getValue(); }
protected function TRACE() { $this->Response->setStatusCode(200); $headers_string = ''; foreach ($this->Request->getHeaders() as $header => $value) { if (substr($header, 0, 5) === 'HTTP_') { $header = substr($header, 5); } $header = str_replace('_', '-', $header); $headers_string .= ucwords($header) . ': ' . $value . "\r\n"; } $this->Response->setBody($headers_string); }