As the title says, I am trying to use Jsoup, specifically the method
String html = Jsoup.connect(page.getUrl()).get().html();
The website is protected by username and password, and I have the login credentials but if I try to fetch the source of the page, the Url redirects to a "please login" page. I do not own the website (do not have direct access to database). Furthermore, I do not know http or Javascript. In the activity, the user will navigate in a webview and log-in to this website and once they are logged in, I get the URL and try to get the source (using the above method).
In summary, I can get the source successfully with Jsoup, but the URL redirects to a login page.
Thank you in advance.