I’m trying to see if it’s possible to log into a wifi access point (AP) that requires web authentication. I know that using .getScanResults() I can get security information from an access point with the .capabilities field of the scan result. But this value is left blank for an access point I am trying to connect to in which I know requires web authentication.
If I already know the credentials (ie: username/password), is it somehow possible to connect to this AP and then enter the credentials to use the wifi as normal?
I’ve found this question on this site, but it does not really answer this question.
How to check WiFi is pass through web page login?
Any help is appreciate, some sample code is even better.
Thanks!
One of the easiest ways to automate web page operation is using HTMLUnit.
http://htmlunit.sourceforge.net/
I used it with great success recently to log in and control a web-based KVM switch.
You can put it to a URL, tell it to fill out certain form fields and click certain buttons. In my experience it is very reliable.
Here’s an example:
http://www.capybara.org/~dfraser/archives/378
I’m driving it from Groovy, but you can get the idea…