获得cookie httpClient.getState().getCookies() 设置cookie策略 client.getstate().setcookiepolicy(cookiepolicy.compatibility)