又看了看java网络编程!有点懵~

看来要想完成程序得下点工夫!
首先打开chinaren校友路的登陆页面,令存为一个HTML文件,用UE打开,查询Form,找到如下的Form定义:
<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=××××××××××">
 <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>用户:<input name=uid type=text class=input1 style="width:50;height:20">
              密码:<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'>手机
     </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><img _fcksavedurl="http://profile.chinaren.com/zhs/register.jsp?group=alumni><img" name=imageField3 type=image  align=absmiddle src=http://images.chinaren.com/cs/sms/alumni3/images/cla_a32.gif width=34 height=18 border=0></a></td>
          </tr>
 </form>
这个应该是提交登陆请求的表单Form。修改form的action=“http://localhost:9090/index.html”
通过java程序将提交的请求(Post)打印出来……
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值