public function sendHttpPost(HttpPost $post = null) { $this->_options = array(); $this->_options[CURLOPT_POST] = true; $this->_options[CURLOPT_HTTPGET] = false; $this->_options[CURLOPT_PUT] = false; if ($post != null && $post->getBody() != null) { $this->_options[CURLOPT_POSTFIELDS] = $post->getBody(); } else { $this->_options[CURLOPT_POSTFIELDS] = ''; } return $this->_sendRequest($this->_url); }