PHP curl can't simulate the login information on this website, http://livearchive.onlinejudge.org/, and it return a sentence ,You are not authorized to view this page!
2条回答 默认 最新
- douying3251 2012-08-18 14:29关注
Since its just a question i would expect you also need an explanation and not any script.
Curl can Login perfectly to the site you mention but you need to get your parameters right.
Your URL should be pointed to : http://livearchive.onlinejudge.org/index.php?option=com_comprofiler&task=login and with the following variables
username= passwd= op2=login lang=english force_session=1 return=B%3AaHR0cDovL2xpdmVhcmNoaXZlLm9ubGluZWp1ZGdlLm9yZy8%3D message=0 loginfrom=loginmodule cbsecuritym3=cbm_02099e1c_6e2810f8_97a3f622ba6c000cb557bd8458534f61&j2ffb0ca892d8cf58942dfbea23559ed2=1 remember=yes Submit=Login
Please take note of
cbsecuritym3
variable and you also need to send 2 Cookie information that look eg.mosvisitor=1; 8ca25fe06780267eef1b49296a9a99ce=249baaaba68197c9b1681e57d69c3193
If all this are properly sent you would be able to login
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
- ¥15 求daily translation(DT)偏差订正方法的代码
- ¥15 js调用html页面需要隐藏某个按钮
- ¥15 ads仿真结果在圆图上是怎么读数的
- ¥20 Cotex M3的调试和程序执行方式是什么样的?
- ¥20 java项目连接sqlserver时报ssl相关错误
- ¥15 一道python难题3
- ¥15 牛顿斯科特系数表表示
- ¥15 arduino 步进电机
- ¥20 程序进入HardFault_Handler