The curl sign-in code does not work.

Source: Internet
Author: User
A website used by my wife has the sign-in function. Five Cash Coupons will be sent in 10 days upon sign-in. the old lady wants a cash coupon, but does not want to sign in every day. Let me solve it. I haven't done it for a long time. I hope you can give me some advice. the following is my code: {code ...} the account and password are newly applied accounts... A website used by my wife has the sign-in function. Five Cash Coupons will be sent in 10 days upon sign-in. the old lady wants a cash coupon, but does not want to sign in every day. Let me solve it. I haven't done it for a long time. I hope you can give me some advice.
The following is my code:


  

The account and password are newly applied accounts and can be logged on.
The key is that the curl function has too many parameters and is not familiar with how to debug curl results.

Reply content:

A website used by my wife has the sign-in function. Five Cash Coupons will be sent in 10 days upon sign-in. the old lady wants a cash coupon, but does not want to sign in every day. Let me solve it. I haven't done it for a long time. I hope you can give me some advice.
The following is my code:


   

The account and password are newly applied accounts and can be logged on.
The key is that the curl function has too many parameters and is not familiar with how to debug curl results.

Use developer tools to capture packets

Why do two requests share a curl handle?

Reinitialize a curl handle before posturl

$session = curl_init();$posturl = 'http://cn.memebox.com/customer/account/loginPost/';curl_setopt($session, CURLOPT_URL, $posturl);

// Debug 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.