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. /images/foo.jpg ) so I need calling URL to make these into absolute ( http://foo.com/images/foo.jpg 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. How do I get the latest URL of the returned content given all the redirects I may (or may not) have?
I looked at HttpGet#getAllHeaders() and HttpResponse#getAllHeaders() - couldn't find anything. -- View this message in context: http://www.nabble.com/Last-redirect-URL-tp25530494p25530494.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
