1--TEST--
2SolrResponse::getRequestUrl() - 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
36echo $query_response->getRequestUrl();
37?>
38--EXPECTF--
39http://%s:8983/solr/collection1/select/?version=2.2&indent=on&wt=xml