/** * @method void validateHeader() */ protected function validateHeader() { // do the standard oauth tricks if ($this->method === 'DELETE') { parent::validateHeader(); return; } $valFunction = 'validate_' . $this->mode; if (method_exists($this, $valFunc)) { call_user_func(array($this, $valFunc)); } else { $this->log("validation is not allowed for mode " . $this->mode); $this->status = RESTling::BAD_HEADER; } // this is a pre check // if we fail at this stage the client needs to start over again if ($this->session->getOAuthState() !== OAUTH_OK) { $this->status = RESTling::BAD_HEADER; } }