暂时保留,以备后用。
CookieSpec cookiespec = CookiePolicy.getDefaultSpec();
Cookie[] cookies=cookiespec.match("域名",80,"/",false ,httpclient.getState().getCookies());for(Cookie cookie:cookies)
System.out.println(cookie.getName()+"##"+cookie.getValue());
暂时保留,以备后用。
CookieSpec cookiespec = CookiePolicy.getDefaultSpec();
Cookie[] cookies=cookiespec.match("域名",80,"/",false ,httpclient.getState().getCookies());