If I create 2 WebClients in different threads, how do I make them use the same cookies?
You can use the below code:
CookieManager cookieManager = new CookieManager(); webClient1.setCookieManager(cookieManager); webClient2.setCookieManager(cookieManager);