1--TEST-- 2SolrResponse::getRawResponseHeaders() - Get Raw Response Headers 3--SKIPIF-- 4<?php 5include 'skip.if.server_not_configured.inc'; 6?> 7--FILE-- 8<?php 9 10require_once "bootstrap.inc"; 11 12$options = array 13( 14 'hostname' => SOLR_SERVER_HOSTNAME, 15 'login' => SOLR_SERVER_USERNAME, 16 'password' => SOLR_SERVER_PASSWORD, 17 'port' => SOLR_SERVER_PORT, 18 'path' => SOLR_SERVER_PATH, 19); 20 21 22$client = new SolrClient($options); 23 24$query = new SolrQuery(); 25 26$query->setQuery('lucene'); 27 28$query->setStart(0); 29 30$query->setRows(50); 31 32$query->addField('cat')->addField('features')->addField('id')->addField('timestamp'); 33 34$query_response = $client->query($query); 35 36$headers = $query_response->getRawResponseHeaders(); 37print_r($headers); 38?> 39--EXPECT-- 40HTTP/1.1 200 OK 41Content-Type: application/xml; charset=UTF-8 42Transfer-Encoding: chunked