How to make 2 HtmlUnit web clients use the same cookies?

If I create 2 web clients in different streams, how do I get them to use the same cookies?

+2
java htmlunit
source share
1 answer

You can use the code below:

CookieManager cookieManager = new CookieManager(); webClient1.setCookieManager(cookieManager); webClient2.setCookieManager(cookieManager); 
+2
source share

All Articles