HttpClient client = new HttpClient();
GetMethod methodget = new GetMethod("xxxxx");
methodget.setFollowRedirects(true);
methodget.getParams().setParameter(HttpMethodParams.SINGLE_COOKIE_HEADER, true);
client.executeMethod(methodget);
httpclient重定向Cookie设置
最新推荐文章于 2024-08-04 04:00:25 发布