开发者

Final URL (after all redirects) using apache HttpClient

开发者 https://www.devze.com 2023-01-19 14:42 出处:网络
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 S

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() ?

0

精彩评论

暂无评论...
验证码 换一张
取 消