|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
缺点:安全性不是太差了,还行,只要你充分利用系统自带的工具;唯一缺点就是执行效率慢,如何进行网站优化以后,效果会比较好。js|js申明:此代码合适你做网站用,是个好器材!
ASP:
CODE:[Copytoclipboard]
<%
dimobjXMLHTTP,qq,pwd
qq="10000"
pwd="123456"
setobjXMLHTTP=Server.CreateObject("MSXML2.XMLHTTP.5.0")
objXMLHTTP.open"POST","_blank>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")
ifInStr(objXMLHTTP.responseText,"考证失利")then
response.write"登录失利"
else
response.write"登录乐成"
endif
setobjXMLHTTP=nothing
%>
PHP:
CODE:[Copytoclipboard]
<php
$qq="100000";//qq号码
$pwd="123456";//暗码
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,"_blank>http://211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo.jsp");
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);//这行是设定curl是不是跟从header发送的location,主要
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);
echostrstr($return,"postfield")?"登录失利":"登录乐成";
?>
js:
CODE:[Copytoclipboard]
<scripttype="text/javascript">
varqq="100000";//qq号码
varpwd="123456";//暗码
if(window.XMLHttpRequest){
varx=newXMLHttpRequest();
}else{
varMSXML=newArray(MSXML2.XMLHTTP.5.0,MSXML2.XMLHTTP.4.0,MSXML2.XMLHTTP.3.0,MSXML2.XMLHTTP,Microsoft.XMLHTTP);
for(varn=0;n<MSXML.length;n++){
try{
varobjXMLHTTP=newActiveXObject(MSXML[n]);
break;
}catch(e){
}
}
}
objXMLHTTP.open("POST","_blank>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(objXMLHTTP.responseText.indexOf("考证失利")>0){
alert("登录失利");
}else{
alert("等录乐成");
}
</script>
</p>对用户来说可预见费用、节约费用,可以做到花少钱办大事。由于省去了购买软件和硬件等的前期费用,用户可以租用较高级的应用软件。ASP的收费是根据软件的类型、客制化程度、用户数量、服务期限来定的,对客户来说这笔费用是可以预见的。方便于客户应用软件的升级。 |
|