I looked at Java Network Programming again! A little too ~

Source: Internet
Author: User
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 ......

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.