WebClient webClient = new WebClient(); Cookie cookie = new Cookie(Domain, Name,Value, Path, ExpiryDate,false); webClient.getCookieManager().addCookie(cookie);