1

This is what I'm trying to do: 1. I have a tablet and I want to connect to the university's wi-fi to access internet 2. Connection to the internet won't work unless you open a browse 3. You are automatically redirected to a university username-password page 4. You type in your university credentials and boom => you have internet

Problem??? I hate to have to put my password every single day and although chrome for android can store it I still have to open a browser, etc. etc. etc.

Solution: Use Selenium, WebDriver, HtmlUnit or some sort of headless browser to programmatically fill in the login form in the background.

Problem 2: These headless browsers don't work on Android (Or I haven't been able to make them work)

Does anyone know of a simple headless browser that works on Android devices, one that can fill a simple form and submit it? Are there other alternatives to what I want to do?

Thx in advance for the help.

Some related Questions: HttpUnit/HtmlUnit equivalent for android, Android: Fill Form Data and Extract HTML, Html Parsing in android

Community
  • 1
  • 1
fernandohur
  • 7,014
  • 11
  • 48
  • 86

1 Answers1

0

How does the University validate you once you've logged in? e.g. is it based on setting cookies in your web browser? What happens if you login with another web browser once you've authenticated in the first one?

Once you know how it authenticates you, you should be able to devise a suitable approach. For instance, if it's device-wide authentication e.g. based on your mac address then perhaps you can write a simple Android app that embeds a WebView, and/or plain old HTTP request / response programming in Java. If, however, it's browser based then you either need to login (automagically) with the browser you then want to use, or find a way to insert the relevant cookie(s) into the browser that you want to use for web browsing.

JulianHarty
  • 3,178
  • 3
  • 32
  • 46