I am using Android to develop an application.
I connected to hotspot, after then, I sent http request to the "http://www.google.com" web page using HttpURLConnection or HttpClient. It should not response, because the connection is not made yet, so it will be redirected to authentication page ot the hotspot.
I wish to get the authentication page html data. But the code throws IOException. The error message is "IOException: Socket is not connected". It connected to the hotspot. I know, it can not be connected to the google.
How can I get the html data???? Anyone know, please let me also know. Thanks in advance.