I've been interested in webcrawlers recently and decided to try Jsoup. I'm not exactly sure how to log into a website with it though. I saw another SO post about it but couldn't piece together how to do it.
I've been trying to crawl around with a site www.tickld.com and the login site is "https://www.tickld.com/signin".
I'm not sure if I'm using Jsoup correctly(I'm certain this is the main reason), if the error is the .jks, or if I'm entering the wrong information, and I don't really see how to test which part of the code is failing.
System.setProperty("javax.net.ssl.trustStore", "filePath\\keystore.jks");
Connection.Response loginForm = Jsoup.connect("https://www.tickld.com/signin")
.method(Connection.Method.GET).execute();
Document document = Jsoup.connect("https://www.tickld.com/signing")
.data("l_username", "myUsername")
.data("l_password", "myPassword")
.cookies(loginForm.cookies())
.post();
but whatever I'm doing, it is not logging into the site, it is only taking me to the signin page.