Im using the code below to connect to a https server from java .
It validates the username and password but it doesnt redirect or goto the homepage when the inputstream is read
DataInputStream input = new DataInputStream( connection.getInputStream() );
always has the same html code from the login page even after the login has been successful .(I was expecting the html page of the user's "home").
I tried opening the connection to a new url(the actual servlet running home page of the user) but it didnt go through..(It again gave back the html code of the login page)
Could you please help me figure out a way to navigate through the website.
From login page to home page to page 2 etc using java https ?
Please find the source code below.
Greatly appreciate the help.
And please UseCodeTags. Your code is not readable in its current form. You can add them by pressing the edit button. Don't forget to keep your original indentation; unindented code is just as unreadable as the current form.