Cookie[] cookies = httpClient.getState().getCookies();
System.out.println("==========Cookies============");
int j = 0;
for (Cookie c: cookies) {
    System.out.println(++j + ":   " + c);
}
httpClient.getState().addCookies(cookies);