From: b. <bo...@fo...> - 2014-05-30 01:45:08
|
hi ,i want to set "single request header" on the new version HtmlUnit, just like this: "DefaultHttpParams.getDefaultParams().setBooleanParameter(HttpMethodParams.SINGLE_COOKIE_HEADER, true);" But it doesn't fit the new version 2.14 of HtmlUnit any more. so i beg for you help !!!!!!! IE's Cookie is like this: but HtmlUnit have four cookie,i want to set it merge into one cookie,can you give examples ,thank you!!!!!! just like this: SID="T2oeyXLuTTBDjWQOhOe"; CUSTOMER="TianJing Normal University"; E_GROUP_NAME="TianJingNormal"; JSESSIONID=9D6AD7CC7CB93FC8EAA925CB4AA2C1FE there are have four cookie in cookie set : [SID="3AqHQtCau2QjbYiMBpi";domain=.webofknowledge.com;path=/;httpOnly, CUSTOMER="TianJing Normal University";domain=.webofknowledge.com;path=/;httpOnly, E_GROUP_NAME="TianJingNormal";domain=.webofknowledge.com;path=/;httpOnly, JSESSIONID=0A720AD4DE716BC75286B8875E70C747;domain=apps.webofknowledge.com;path=/;httpOnly] |