当我尝试为 Apache httpget 请求设置 cookie 时,我遇到了这个问题:
error.violates RFC 2109: host minus domain may not contain any dots
最佳答案
我在代码中添加以下行,然后问题就解决了。
httpGet.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);
httpGet.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.RFC_2965);
关于java - 违反 RFC 2109 : host > minus domain may not contain any dots,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39607324/