protected function initPostFields($params) { if (!empty($params) && is_array($params)) { $this->header->set('Content-Type', 'application/x-www-form-urlencoded'); $this->setOption('content', http_build_query($params)); } }