Getting redirected URL in Apache HttpComponents
问题 I'm using Apache HttpComponents to GET some web pages for some crawled URLs. Many of those URLs actually redirect to different URLs (e.g. because they have been processed with a URL shortener). Additionally to downloading the content, I would like to resolve the final URLs (i.e. the URL which provided the downloaded content), or even better, all URLs in the redirect chain. I have been looking through the API docs, but got no clue, where I could hook. Any hints would be greatly appreciated.