Final URL (after all redirects) using apache HttpClient
H开发者_如何学Cow do I get the final URL of a Http request when I use HttpMethod.setFollowRedirects(true)
. I am using apache Httpclient - GetMethod
.
Have you tried method.getURI()
, or as suggested by Stephen - method.getPath()
?
精彩评论