I would like to inspect the response generated by the following html code .
<form class="init" action="Initz.php" method="post">
<table border="0" cellpadding="6" cellspacing="0">
<tr><td>Name</td><td><input type="text" name="name" class="init"></td></tr>
<tr><td>Password</td><td><input type="text" name="pass" class="init"></td></tr>
<tr><td colspan=2><input type="radio" name="x" value="1" checked="checked">Enter</td></tr>
<tr><td colspan=2><input type="radio" name="x" value="2">Register</td></tr>
<tr><td colspan=2><input type="submit" value="Login">   <input type="reset" value="Reset"></td></tr>
</table>
</form>
The page contains 2 input text fields , handled by the attributes "text" , 2 radio inputs , with the "Enter" one being selected by default and 2 buttons , which have no "name"-attribute and therefore i have no idea how to handle them.
So far , i have tried several alternatives with Jsoup and basically focused on the following code ,but instead of getting the response , i keep getting the starting page's code , probably due to the incomplete request being sent:
Document doc = Jsoup.connect("example http")
.data("name","myname")
.data("pass","mypass")
.data("x","1")
.post();
How could i effectively handle the last input line and post the request ?