JOptionPane.showMessageDialog(this, "Domain invalid: "+e1.getMessage());
return;
}
try {
if (cookieStr.startsWith("Set-Cookie")) {
Cookie cookie;
cookie = new Cookie(cookieStr,url);
jobobase.getRobot().getCookieManager().add(cookie);
JOptionPane.showMessageDialog(this, "Cookie added");
} else {
Cookie[] cookies = Cookie.cookieStringToCookies(cookieStr, domain);
for (int i=0; i<cookies.length; i++) {