HttpClient WARNING: Cookie rejected: Illegal domain attribute

前端 未结 7 801
慢半拍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 04:08

    If you don't need to process cookies you can simply disable it, with org.apache.http.impl.cookie.IgnoreSpecProvider or org.apache.http.impl.cookie.IgnoreSpec depending on what API you use. Calling disableCookieManagement() on HttpClientBuilder is not enough

提交回复
热议问题