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 );}