I try to use jsoup to enter the site and then clear the information, I have a problem, I can log in and create a document from index.php, but I cannot get other pages on the site. I know that I need to set a cookie after posting, and then load it when I try to open another page on the site. But how do I do this? The following code allows me to log in and get index.php
Document doc = Jsoup.connect("http://www.example.com/login.php") .data("username", "myUsername", "password", "myPassword") .post();
I know I can use apache httpclient for this, but I don't want to do this.
java jsoup screen-scraping
Gwindow Jun 21 2018-11-11T00: 00Z
source share