/** * Central method for making a post operation against this Solr Server * * @param string $url * @param string $rawPost * @param int|bool $timeout Read timeout in seconds * @param string $contentType * * @return Apache_Solr_Response */ protected function _sendRawPost($url, $rawPost, $timeout = false, $contentType = 'text/xml; charset=UTF-8') { $headers = array('Content-Type: ' . $contentType); $this->_setBasicAdapterOptions($timeout); $this->_curlAdapter->addOptions(array(CURLOPT_HEADER => 1))->write(Zend_Http_Client::POST, $url, '1.1', $headers, $rawPost); return $this->_getResponse(); }