PHPcurl simulated login to obtain cookie help Cainiao learn to use PHP curl to simulate login, wait for the weiphon Forum to use the following code successfully, login to www.xiaomi.com will survive and survive, help AH. The cookie is obtained. Please help me solve the problem. Think about what you can't do at night without income!
Reply to discussion (solution)
Delete row 19th
Test successful However, the simulated account login effect is not achieved. Only the home page of xiaomi is collected.
It indicates that there is still data not submitted. For example:
Curl_setopt ($ ch, CURLOPT_REFERER,
Incomplete post data:
Input flag for automatic logon within two weeks: auto = 1
Other values of the form in the webpage.
$ Login_url = 'https: // account.xiaomi.com/pass/serviceloginauth ';
Should be:
$ Login_url = 'https: // account.xiaomi.com/pass/serviceloginauth2 ';
All
PassToken may be generated using js. Thank you for your ideas. I will try again ~