What I encountered when I used Sina Weibo to perform automatic login was that as a big newbie, even the login script was written by someone else and used it for modification, in the end, I realized that the script was used to obtain cookies. it was really slow to respond, or the principle of logging on without intention was quite complicated, as I thought, it was too simple to get the page from curl and then post it.
Sort out the price processing string functions:
The code is as follows:
$ Encryption = "username ";
Echo base64_encode ($ encryption); // echo "dXNlcm5hbWU = ";
Echo"
";
Echo urlencode ("http: //". $ encryption); // echo "http % 3A % 2F % 2 Fusername ";
Echo"
";
Echo sha1 ($ encryption); // echo "249ba36da-29bbe97499c03db5a9001f6b734ec"
Echo"
";
?>
Record their approximate appearance so that class processing can be quickly identified in the future.
By the way I found the script at the time of the article address: http://www.jb51.net/article/29486.htm