The wife uses a website has the sign-in function, the sign-in 10 days sends 5 Yuan cash voucher. The wife wants the cash voucher, but does not want to sign every day, let me solve. I have tried for a long time has not been done, I hope the master pointing.
Here's My Code:
里面的账号密码是新申请的账号,可以登录.
关键是curl函数的参数太多了,而且不太熟悉怎么调试curl的结果. 请高手指点为什么这段代码不工作.
Reply content:
The wife uses a website has the sign-in function, the sign-in 10 days sends 5 Yuan cash voucher. The wife wants the cash voucher, but does not want to sign every day, let me solve. I have tried for a long time has not been done, I hope the master pointing.
Here's My Code:
里面的账号密码是新申请的账号,可以登录.
关键是curl函数的参数太多了,而且不太熟悉怎么调试curl的结果. 请高手指点为什么这段代码不工作.
用开发者工具抓包看看
两个请求为什么要共用一个curl句柄呢?
在 posturl之前重新初始化一个curl句柄
$session = curl_init();$posturl = 'http://cn.memebox.com/customer/account/loginPost/';curl_setopt($session, CURLOPT_URL, $posturl);
//调试curlif(!curl_errno($ch)){ $info = curl_getinfo($ch);}