emotional developer/detect-Java
httpclient cookie 설정.
성게군.
2015. 7. 31. 18:03
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
반응형