Violates RFC 2109: host > minus domain may not contain any dots

吃可爱长大的小学妹 提交于 2020-01-14 14:36:31

问题


When I try to set a cookie to Apache httpget request I face with this:

error.violates RFC 2109: host minus domain may not contain any dots


回答1:


I add below lines to code then problem solved.

httpGet.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);

httpGet.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.RFC_2965);


来源:https://stackoverflow.com/questions/39607324/violates-rfc-2109-host-minus-domain-may-not-contain-any-dots

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!