How to avoid sending Cookie header in java unirest requests?
问题 I noticed that using unirest java library cookies are by default sent in requests after being set in responses (just like any browser does). Is there any way to avoid it? Example: public class Main { private static HttpResponse<JsonNode> doRequest() throws UnirestException { try { HttpResponse<JsonNode> jsonResponse = Unirest .get("http://example.com") .header("Accept", "application/json").asJson(); return jsonResponse; } catch (UnirestException e) { throw e; } } public static void main