Sms error | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through April 10, 2006 ⬆ |
◄ ► |
Author | Message | |||
greentea Unregistered guest |
This is my coding for the http post for the sms. I'm using vb in asp.net. I need some help for this. Dim objWinHttp Dim strURL Dim strResponse strURL = "http://202.21.159.4/mArk/servlet/SMSSendServlet?" & _ "channel=1" & _ "&msisdn=6591234567" & _ "&content=" & Server.UrlEncode("This is a testing sms sent from a asp.") & _ "&encoding=1" & _ "&chargecode=0" & _ "&live=0" & _ "&ref=******" ' Create our HTTP object... using 5.1 from WinXP Sp1 objWinHttp = Server.CreateObject("WinHttp.WinHttpRequest.5.1") ' Send our request objWinHttp.Open("GET", strURL) objWinHttp.Send() ' If the response status indicates success then we update the cache If objWinHttp.Status = "200" Then strResponse = "SMS successfully sent.<br/>" & _ "HTTP Response Code = " & objWinHttp.Status & "<br/>" & _ "HTTP Response Message = " & objWinHttp.StatusText Else strResponse = "SMS sending fails.<br/>" & _ "HTTP Response Code = " & objWinHttp.Status & "<br/>" & _ "HTTP Response Message = " & objWinHttp.StatusText End If ' Kill our HTTP object objWinHttp = Nothing Response.AppendToLog("Done") End Sub My error is The component 'WinHttp.WinHttpRequest.5.1' cannot be created. Apartment threaded components can only be created on pages with an <%@ Page aspcompat=true %> page directive. I'm using xp sp2 but i check the httprequest.5.1 do support xp sp2. Thank in advance | |||
greentea81 Unregistered guest |
hi if possible add me to my msn at pohwah81@yahoo.com.sg Thank you | |||
Anonymous |
deleted by admin 657 |