0
我从Android电子cookie管理器的cookie字符串如何从字符串创建httpcookie?
回报
hl=ru; PHPSESSID=qmvc3c7qq3r07a3dqn7hgk4065
然后,我用HttpCookie.parse
List<HttpCookie> cookies = HttpCookie.parse(stringCookie);
for (HttpCookie c : cookies) {
Log.e("My WebView","cookie "+ c.toString()+" | "+c.getComment() + " | " +c.getCommentURL()
+ " | " +c.getDomain() + " | " +c.getName() + " | " +c.getPath() + " | " +c.getValue());
}
但是,PHPSESSID总是被丢失,日志显示
cookie hl=ru | null | null | null | hl | null | ru
如何进行适配器转换?