How to retrieve cookies on a https connection?
问题 I'm trying to save the cookies in a URL that uses SSL but always return NULL. private Map<String, String> cookies = new HashMap<String, String>(); private Document get(String url) throws IOException { Connection connection = Jsoup.connect(url); for (Entry<String, String> cookie : cookies.entrySet()) { connection.cookie(cookie.getKey(), cookie.getValue()); } Response response = connection.execute(); cookies.putAll(response.cookies()); return response.parse(); } private void buscaJuizado(List