I am trying to login to a website and go to a different page after. Here is my code:
Connection.Response res = Jsoup.connect("https://www.shop.exalto.com/profile/login")
.data("username", myUsername , "password", myPassword)
.method(Method.POST)
.execute();
Map<String, String> loginCookies = res.cookies();
Document doc = Jsoup.connect(url).cookies(loginCookies).get();
For some reason the login part does not work and I have no idea how to fix it.