httpclient重定向Cookie设立

httpclient重定向Cookie设置HttpClient client new HttpClient()GetMethod methodget new GetMethod(

httpclient重定向Cookie设置

HttpClient client = new HttpClient();GetMethod methodget = new GetMethod("xxxxx");methodget.setFollowRedirects(true);methodget.getParams().setParameter(HttpMethodParams.SINGLE_COOKIE_HEADER, true);client.executeMethod(methodget);

?