protected function AcquiaSearchService::_sendRawPost in Acquia Search 6.3
Central method for making a POST operation against this Solr Server
@override
Overrides DrupalApacheSolrService::_sendRawPost
File
- ./
Acquia_Search_Service.php, line 107
Class
Code
protected function _sendRawPost($url, $options = array()) {
$options['method'] = 'POST';
// Normally we use POST to send XML documents.
if (!isset($options['headers']['Content-Type'])) {
$options['headers']['Content-Type'] = 'text/xml; charset=UTF-8';
}
$nonce = $this
->prepareRequest($url, $options);
$response = $this
->_makeHttpRequest($url, $options);
$response = $this
->checkResponse($response);
return $this
->authenticateResponse($response, $nonce, $url);
}