<% Function Post(url,data) dim Https set Https=server.createobject("MSXML2.XMLHTTP") Https.open "POST",url,false Https.setRequestHeader "Content-Type","application/x-www-form-urlencoded;charset=UTF-8" Https.send data if Https.readystate=4 then dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write Https.responseBody objstream.Position = 0 objstream.Type = 2 objstream.Charset = "utf-8" Post = objstream.ReadText objstream.Close set objstream = nothing set https=nothing end if End Function dim target,post_data target = "http://sms.106jiekou.com/utf8/sms.aspx" post_data = "account=&password=&mobile=&content="&Server.URLEncode("您的驗證碼是:4557。請不要把驗證碼泄露給其他人。如非本人操作,可不用理會!") response.Write(Post(target,post_data)) ''//請自己解析Post(target,post_data)返回的字符串并實現(xiàn)自己的邏輯 ''100 表示成功,其它的參考文檔 %>
友情鏈接:106短信平臺 | 發(fā)短信平臺 | 短信接口平臺 | 短信接口平臺哪個好 | 國際短信 | 短信通 | 短信接口應用
關于我們 | 產(chǎn)品與服務 | 解決方案 | 客戶案例 | 聯(lián)系我們 | 幫助指南 | 付款方式
Copyright © 2008-2018 短信通 . 速度網(wǎng)絡有限公司 短信接口應用第一平臺 All rights reserved. 浙ICP備10040624號-2