I am trying to extract the source of a website, and I have researched a bit and many solutions point to using HTTPClient and HTTPContext but the problem is that I cannot use a URL to get this source from. The website I am using is based on logins and no matter who you are logged in as, it displays the same URL (but, of course, the information to be extracted is different based on the user). Therefore, I was wondering if there way a way to directly get the source from, perhaps, a webview or something of the sort. In summary, I cannot use a URL intermediate because it is uniform and basically redirects to a generic log-in page.
Sorry if I am missing something; I am new to this. Thank you for the help in advance.
EDIT:
I have found a differentiated URL that is different per user, but there is a(nother) related problem: Using jsoup, I can do Jsoup.connect("http://www.stackoverflow.com/").get().html(); (with the URL replaced with what I'm trying to access) and this does in fact get the HTML source, but the problem again arises that it asks for log-in information when I try to access a user/password protected website. I need to be able to enter username and password once and basically store this in some sort of temporary thing (cookies/cache?) and retain that information for jsoup to stop querying the login credentials each time I ask for a source based on a certain URL. I still cannot find a way to get around this...