I've been trying to login to an aspx website using a Jsoup crawler, everything I've found so far has been with forms but this aspx website here doesn't have any forms. How do I do this?
Here's what I have so far:
Connection.Response loginForm = Jsoup.connect(LOGARUN_URL)
.method(Connection.Method.GET)
.execute();
Connection.Response currentPage = Jsoup.connect(LOGIN_FORM_URL)
.data("LoginName", USERNAME)
.data("Password", PASSWORD)
.cookies(loginForm.cookies())
.method(Connection.Method.POST)
.userAgent(USER_AGENT)
.execute();
System.out.println(currentPage.parse().html());