<%@ ENABLESESSIONSTATE = False %>
<% option explicit %>
<%
Dim objXMLHTTP, sRemoteURL,posturl //Create & initialize the XMLHTTP object
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0")
sRemoteURL = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=7avip7@gmail.com:interested&senderID=TEST SMS&receipientno=9132154732&msgtxt=This is a test from mVaayoo API&state=4";
//Open the connection to the remote server
objXMLHTTP.Open "POST", sRemoteURL
//If you are behind proxy please mention the proxy ip with port. Or just comment below line...
objXMLHTTP.setProxy 2, "192.168.1.210:6666"
objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
posturl = "User=xxxx&passwd=xxxx&mobilenumber=919xxxxxxxxx&message=xxxx&sid=xxxx&mtype=N&DR=Y"
objXMLHTTP.setRequestHeader "Content-Length",LEN(posturl)
//Send the request to the eProcessingNetwork Transparent Database Engine
objXMLHTTP.Send posturl
//store the response
response.Write(objXMLHTTp.responseText)
%>
Tuesday, November 16, 2010
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment