QQ host mounting is very popular now. Recently, I saw someone writing such a PHP code to implement QQ host mounting. I 'd like to share it with you. PHP code: php $ qq100000; QQ number $ pwd123456; password $ chcurl_init (); curl_setopt ($ ch, CURLOPT_URL, 211.139.167.71waptestTWFqqportalrel is currently very popular when QQ hangs up, recently, I saw a person who wrote such a PHP code to implement QQ hook-up. I 'd like to share it with you.
PHP code:
$ Qq = "100000"; // qq number
$ Pwd = "123456"; // password
$ Ch = curl_init ();
Curl_setopt ($ ch, CURLOPT_URL, "http: // 211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo. jsp ");
Curl_setopt ($ ch, CURLOPT_FOLLOWLOCATION, 1); // This line sets whether the curl follows the location sent by the header,
Important
Curl_setopt ($ ch, CURLOPT_POST, 1 );
// Curl_setopt ($ ch, "Connection", "Keep-Alive ");
Curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, 1 );
Curl_setopt ($ ch, CURLOPT_POSTFIELDS, "qq =". $ qq. "& pwd =". $ pwd. "& FromWhere = register ");
$ Return = curl_exec ($ ch );
Curl_close ($ ch );
Echo strstr ($ return, "postfield ")? "Logon failed": "logon successful ";
?>
Note: 1. the curl module is required. 2. after you log on, your friends will see you online. 3. you do not know how to deprecate the service.
The implementation of other languages is similar. if you are interested, you can develop them yourself.