There is a SSL encrypted (signed by thawte, so no selfsigned problems) Website with login required. My goal is to read some data from a subpage of this site. The regular process on a webbrowser would be:
- go to “https://abc.de”
- enter credentials and hit button
- now .. logged in you click on a link and can see the data
Now in Android, I want the user to click a button, do all that stuff in the background automatically, and show him results in a parsed form.
As I dont know much about Android programming, my first guess was the WebView. When sending a POST request directly to the login page with the credentials, this works fine. But it seems like I cant get the sourcecode of the WebView. What would be the best/easiest technology/way to do what I want?
Rather than using just the
WebView, it’s probably better to use eitherHttpClientorHttpURLConnection(see this blog post for a discussion of which to use) to initially load the page from the server. You can then do what you need to do with the data returned and then pass it to aWebViewfor display.