HttpClient WARNING: Cookie rejected: Illegal domain attribute

前端 未结 7 783
慢半拍i
慢半拍i 2020-12-09 03:36

I\'m using HttpClient latest version (4.x). And right now I\'m trying to do A GET Request. I just posting a Get request.

This is my Code;

public clas         


        
7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 03:57

    Here is the simplest way to suppress the warning in v4.5.x (4.5.6 right now) :

    HttpClientBuilder clientBuilder = HttpClientBuilder.create();
    clientBuilder.disableCookieManagement();
    HttpClient httpClient = clientBuilder.build();
    

提交回复
热议问题