I am reading around StackOverflow and I can't find a fix for my code. I'm pretty sure I'm just doing some silly mistake as this is the first time using JSoup.
My main goal is logging into the website: https://ps.seattleschools.org/public/
Right now I have this code:
public static final String USERNAME = "---Place Holder---";
public static final String PASSWORD = "---Place Holder---";
public static final String URL = "https://ps.seattleschools.org/public/";
public static final String POST_URL = "https://ps.seattleschools.org/guardian/home.html";
public static void main(String[] args) throws IOException {
Connection.Response loginForm = Jsoup.connect(URL)
.data("Account", USERNAME)
.data("pw", PASSWORD)
.method(Connection.Method.POST)
.execute();
Document document = Jsoup.connect(POST_URL)
.cookies(loginForm.cookies())
.get();
System.out.println(document);
}
If you look on the website, the form is really big, but most of the items are hidden. Am I supposed to fill them out anyway? Anyways, thanks for helping