qq_30187181 2015-09-20 06:10 采纳率: 0%
浏览 1983
已结题

curl 模拟登录网站,表单数据的填写问题

 <form name=form1 method=post action="/Control"><input type="hidden" name="id" value="2000">
<table border="0" width="100%" cellspacing="1" cellpadding="0" height="100%" class="f1">
    <tr>
        <td height="177" colspan="2">
        <p align="center">
         </td>
    </tr>
    <tr>
        <td height="41" width="39%" align="right">用户名 Usename</td>
        <td height="41" width="60%">&nbsp;<input name="strAccount" id="userId" type="text" maxlength="26" class="input-border" onKeyUp="this.value=new String(this.value).toLowerCase()"></td>
    </tr>
    <tr>
        <td height="36" width="39%" align="right">密 码 Password </td>
        <td height="36" width="60%">&nbsp;<input name="strPassword" type="password" maxlength="16" class="input-border"></td>
    </tr>
    <tr>
        <td height="40" width="39%" align="center"><a target="_blank" href="http://metcoa.cjlu.edu.cn:8080/service/forget_form.jsp">>>找回密码</a></td>
        <td height="40" width="60%">&nbsp;<input type="submit" name="0MKKey" value="" class="login-b"  onMouseOver="this.className='login-b2'" onMouseDown="this.className='login-b3'" onMouseOut="this.className='login-b'"/>&nbsp;&nbsp; 
        <input type="button" name="" value="" onClick="reset();return false;" class="login-a"  onMouseOver="this.className='login-a2'" onMouseDown="this.className='login-a3'" onMouseOut="this.className='login-a'"/></td>
    </tr>
    <tr>
        <td height="61">
        <P align="center">
<input type="checkbox" name="union" value="true" onClick="if(this.checked) this.checked=confirm('您已经选择互联网登录,开始计时')"> 互联网登录</P></td>
        <td height="61">
        <a target="_blank" href="http://10.252.0.192/CMClient_Setup_1.4.2.11.zip">中国移动L2TP客户端(点击下载)</a><br>
        <a target="_blank" href="http://10.252.0.192/shanxunclient.zip">中国电信闪讯客户端(点击下载)</a>
        </td>
    </tr>
    <tr>
        <td valign="top" colspan="2">
         </td>
    </tr>
</table>
</form>

这是 登陆界面的form 部分
这是chrome 开发工具查看的提交的表单数据
图片说明

`
登录不上去,没有提示错误就返回登录界面的html


curl -d "id=2000&strAccount=帐号&strPassword=密码&union=true&0MMKey="

返回的这个
图片说明

  • 写回答

1条回答 默认 最新

  • oyljerry 2015-09-20 06:55
    关注

    组装的数据格式有问题吧,fiddler等抓包对比一下数据。

    评论

报告相同问题?

悬赏问题

  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建