Curl Sign-In code does not work

Source: Internet
Author: User
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);}
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.