It seems that it takes some time to complete the program! First open the chinaren login page, save it as an HTML file, open it with ue, Query Form, and find the following form definition: <form name = FM action = 'HTTP: // passport.sohu.com/login.jsp'onsubmit = 'if (! Chkloginfm () return false; 'method = post>
<Input type = hidden name = loginid value = "">
<Input type = hidden name = appid value = "1005">
<Input type = hidden name = Ru value = "http://profile.chinaren.com/urs/setcookie.jsp? Burl = http://alumni.chinaren.com/class/class_index.jsp? Classuuid = xxx ">
<Input type = hidden name = fL value = "1">
<Input type = hidden name = CT value = "1141649014">
<Input type = hidden name = VR value = "1 | 1">
<Input type = hidden name = SG value = "d84ec33ec27e5d5b138d4942eb54e24f">
<Tr>
<TD class = cla1> User: <input name = uid type = text class = input1 style = "width: 50; Height: 20">
Password: <input name = passwd type = PASSWORD class = input1 style = "width: 50; Height: 20">
<Input type = radio name = utype checked value = '0'> chinaren
<Input type = radio name = utype value = '1'> Sohu
<Input type = radio name = utype value = '2'> mobile phone
</TD>
<TD> <input name = imagefield2 type = image src = http://images.chinaren.com/cs/sms/alumni3/images/cla_a31.gif width = 34 Height = 18 border = 0 align = absmiddle> <a href = http://profile.chinaren.com/zhs/register.jsp? Group = alumni> </a> </TD>
</Tr>
</Form> This is the form that submits the login request. Modify the form action = "http: // localhost: 9090/index.html" to print the submitted request (post) through the Java program ......