본문 바로가기

emotional developer/detect-Java

httpclient cookie 설정.



http://stackoverflow.com/questions/874903/how-can-i-force-javas-httpclient-to-accept-invalid-cookies


HttpClient client = new HttpClient();
client.getParams().setParameter("http.protocol.single-cookie-header", true);
client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);


http://stackoverflow.com/questions/7459279/httpclient-warning-cookie-rejected-illegal-domain-attribute


You can't "fix" it. The site is trying to set a cookie it's not allowed to set and the apache client library you're using is telling you about it.

It's trying to set a cookie for mcore.com when the domain is goklik.co.id




반응형

'emotional developer > detect-Java' 카테고리의 다른 글

maven Reactor Options  (0) 2016.03.24
spring 4.1 JSONP support  (0) 2015.07.26
slf4j multiple bindings error  (0) 2015.07.26