This code is suitable for your website, ordinary friends can ignore this thing!
The following is the quoted content: ASP: CODE: [Copy to clipboard] <% dim objXMLHTTP,qq, pwd qq=10000 pwd = 123456 set objXMLHTTP = Server.CreateObject(MSXML2.XMLHTTP.5.0) objXMLHTTP.open POST, http://211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo.jsp, false objXMLHTTP.setRequestHeader Content-Type, application/x-www-form-urlencoded objXMLHTTP.setRequestHeader Connection, Keep-Alive objXMLHTTP.send(qq=&qq&&pwd=&pwd&&FromWhere=register) if InStr(objXMLHTTP.responseText, verification failed) then response.write login failed else response.write Login successful end if set objXMLHTTP = nothing %> |
The following is the quoted content: PHP: CODE: [Copy to clipboard] <php $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 is to set whether 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) ? Login failed: Login successful; ?> |