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
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报