"ASP" Gen Blue 253 Cloud communication PAAs platform SMS Verification Code Interface call Demo

Source: Internet
Author: User

<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%>
<%
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"
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://222.73.117.156/msg/HttpBatchSendSM"
Post_data = "account= Create Blue account &pswd= Blue password &mobile= mobile number &msg=" &server.urlencode ("SMS Test") & "& Needstatus=true&extno= "

Response. Write (Post (Target,post_data))
"//Please parse the string returned by the post (Target,post_data) and implement your own logic
"The first line xxxxxxx,0 is successful, other reference Http.doc documents
%>

"ASP" Gen Blue 253 Cloud communication PAAs platform SMS Verification Code Interface call Demo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.