September 21st, 2009, 01:49 AM
sms from hosting server
I m using .Net 2005.
I want to send sms through proxy,
below code is nicely working on localhost but not on hosting server.
Suggest me how to run this code on server.....
Dim request As WebRequest = Nothing
Dim response As HttpWebResponse = Nothing
Dim url As String
url = "http://xyz.com/I/rest?method=sendMessage&send_to=" & mobilno & "&msg=" & msgs & "&userid=" & userid & "&password=" & passwd &"
request = WebRequest.Create(url)
Dim proxy As New WebProxy("http://xyz.com/I/")
proxy.Credentials = New NetworkCredential("x", "y", "http://xyz.com/I/")
request.Proxy = proxy
response = request.GetResponse()
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.