How To Make 2 Htmlunit's Webclients Use Same Cookies?
If I create 2 WebClients in different threads, how do I make them use the same cookies?
Solution 1:
You can use the below code:
CookieManager cookieManager = new CookieManager();
webClient1.setCookieManager(cookieManager);
webClient2.setCookieManager(cookieManager);
Post a Comment for "How To Make 2 Htmlunit's Webclients Use Same Cookies?"