-
September 21st, 2009, 12:49 AM
#1
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()
Thanx
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|