码迷,mamicode.com
首页 > Web开发 > 详细

HttpClient3.1 警告: Cookie rejected:

时间:2015-04-16 19:12:09      阅读:2143      评论:0      收藏:0      [点我收藏+]

标签:

四月 16, 2015 5:26:41 下午 org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
警告: Cookie rejected: "$Version="1"; BAIDUID="1E6B32311ACAB688169606EB8862CD69:FG=1"; $Path="/"; $Domain=".baidu.com"". Domain attribute ".baidu.com" violates RFC 2109: host minus domain may not contain any dots
四月 16, 2015 5:26:42 下午 org.apache.commons.httpclient.HttpMethodBase processCookieHeaders
警告: Cookie rejected: "$Version="1"; BAIDUID="46FC824C23445D3A6D43C0BD8D5414DB:FG=1"; $Path="/"; $Domain=".baidu.com"". Domain attribute ".baidu.com" violates RFC 2109: host minus domain may not contain any dots

设置以下内容,就可以:

        DefaultHttpParams.getDefaultParams().setParameter("http.protocol.cookie-policy", CookiePolicy.BROWSER_COMPATIBILITY);
        

 

HttpClient3.1 警告: Cookie rejected:

标签:

原文地址:http://www.cnblogs.com/yshyee/p/4432732.html

(0)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!