当前位置: 首页 > 工具软件 > OMS-PHP > 使用案例 >

风云php,t.php · 风云酷小子/js - Gitee.com

萧英光
2023-12-01

$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);

一键复制

编辑

Web IDE

原始数据

按行查看

历史

 类似资料: