java - How to make 2 HtmlUnit's WebClients use same cookies? -


If I make 2 webcells in different threads, how can I use them one cookie?

You can use the following code:

  cookie manager Cookiemanager = new cookieManager (); WebClient1.setCookieManager (cookieManager); WebClient2.setCookieManager (cookieManager);  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -