public HTMLReader(String abc) throws IOException
{
URL url = new URL(abc);
URLConnection con = url.openConnection();
InputStream is =con.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line = null;
while ((line = br.readLine()) != null&& (exit==false))
{
System.out.println(line);
}
}
The above is a simple java code that reads html code off a given url of a website. Let's say the given is a Hotmail url https://col130.mail.live.com/default.aspx.
When I tired reading the html code for that url, It is giving me the html code of the Hotmail login page, even though I have already signed in to my Hotmail e-mail.
Is there something I should do to be able to read the html code of my e-mail page that is already signed in? Thank you.