您好,欢迎访问一九零五行业门户网

使用 模拟登陆 抓取学校系统的晨跑数据,失败了,请教大神

最近在学习php的模拟登陆,就想拿学校的体育教学系统实践一下,但失败了。请教大神,我的代码到底错在了哪?
【一些信息】
登录系统的地址:http://210.35.75.247:8080/student/studentframe.jsp
(用户名:1101001,密码:1101001,角色:学生)
查晨跑的地址:http://210.35.75.247:8080/student/querycheckinfo.jsp
【代码如下】

【第一次发帖,拜谢!】
回复讨论(解决方案) 你的代码没有大问题,curl_exec()返回的是结果,你没有接收没有输出,所以空白了
刚才试了一下,登陆成功了
$name, 'passwd' => $pw,);$ch = curl_init();curl_setopt($ch, curlopt_url, $url);curl_setopt($ch, curlopt_header, 0);curl_setopt($ch, curlopt_returntransfer, 1);curl_setopt($ch, curlopt_post, 1);curl_setopt($ch, curlopt_postfields, http_build_query($params));$con = curl_exec($ch);curl_close($ch);echo preg_replace('/
貌似有分可以给
另外这里好像要结贴
哈哈,不好意思啊,第一次发帖不了解情况,已给分~ 谢谢!
貌似有分可以给
另外这里好像要结贴
其它类似信息

推荐信息