title: HttpClient 4 - how to capture last redirect URL
body: <p>I have rather simple HttpClient 4 code that calls HttpGet to get HTML output. The HTML returns with scripts and image locations all set to local (e.g. <code>&lt;img src="/images/foo.jpg"/&gt;</code>) so I need calling URL to make these into absolute (<code>&lt;img src="http://foo.com/images/foo.jpg"/&gt;</code>) Now comes the problem - during the call there may be one or two 302 redirects so the original URL is no longer reflects the location of HTML. </p>
  
  <p>How do I get the latest URL of the returned content given all the redirects I may (or may not) have?</p>
  
  <p>I looked at <code>HttpGet#getAllHeaders()</code> and <code>HttpResponse#getAllHeaders()</code> - couldn't find anything.</p>
  
  <p>Edited: <code>HttpGet#getURI()</code> returns original calling address</p>