加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
t.php 2.04 KB
一键复制 编辑 原始数据 按行查看 历史
小不坑 提交于 2016-07-09 04:41 . no commit message
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://zx.rcpx.cc/els/html/courseStudyItem/courseStudyItem.updateTimestepByUserTimmer.do");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// post数据
curl_setopt($ch, CURLOPT_POST, 1);
// post的变量
curl_setopt($ch, CURLOPT_COOKIE, "JSESSIONID=F4464706D2119AB7F7C9AB08648883B0; oms_eln_session_id=91990e05-5d97-4bca-9f2b-f5c6bdf06d3a; eln_session_id=elnSessionId.9d6bbc14b86d4eb6825141c3d847b128; corp_code=cqrcpx; nxYongdaoIp=10.0.1.101; _pk_id.1.d370=aa87afba5fab85be.1467437234.3.1468044708.1467601465.; learn_eln_session_id=learn_eln_session_id.c9b4e949b98b4ffe876e9be31776722e");
echo $output = curl_exec($ch);
curl_close($ch);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://zx.rcpx.cc/els/html/courseStudyItem/courseStudyItem.saveProgress.do");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// post数据
curl_setopt($ch, CURLOPT_POST, 1);
// post的变量
$header[] = "Referer:http://zx.rcpx.cc/els/flash/elnFlvPlayer.swf?v=5";
$header[] = "Origin:http://zx.rcpx.cc";
$header[] = "User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36 Core/1.47.640.400 QQBrowser/9.4.8309.400";
$header[] = "Content-Type:application/x-www-form-urlencoded";
$header[] = "Content-Length:141";
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POSTFIELDS, "scoId=939d459347a542a4a145385e9398e01d&progress_measure=100&courseId=eae8de056478f51bc33c9b2719b98433&session_time=29:09&location=5491.6");
curl_setopt($ch, CURLOPT_COOKIE, "JSESSIONID=F4464706D2119AB7F7C9AB08648883B0; oms_eln_session_id=91990e05-5d97-4bca-9f2b-f5c6bdf06d3a; eln_session_id=elnSessionId.9d6bbc14b86d4eb6825141c3d847b128; corp_code=cqrcpx; nxYongdaoIp=10.0.1.101; _pk_id.1.d370=aa87afba5fab85be.1467437234.3.1468044708.1467601465.; learn_eln_session_id=learn_eln_session_id.c9b4e949b98b4ffe876e9be31776722e");
echo $output = curl_exec($ch);
curl_close($ch);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化