Hi,
I want to create an sms send application which connects to a web server and through http method "post" send the sms text message to the specified mobile number, the site has an api to do it, I thing is in java has a jsp extension, I will give you the api commands and parameters also the code I believe it works in VB .Net and if you can tell me if it has any errors.
the http :
messaging.smscanal.com/sms/sendsms.jsp
and the parameters
messaging.smscanal.com/sms/sendsms.jsp?user=username&password=password&mobiles=30XXXXXXXX&sms=msgbody
the .jsp api parameters :
a)user : user id of the Telexxx (sms company) account
b)password : valid password of above user
c)mobiles : comma separated mobile numbers on which message will be deliver(e.g. 9824012345,98XXXXXXXX) .Either of mobiles or group name you can use. At a time you can use only one parameter either mobiles or groupname
d)sms : SMS text which you want to send to your customer (e.g. Test message)
and the code I found in VB .net
Using client As New Net.WebClient
Dim reqparm As New Specialized.NameValueCollection
reqparm.Add("param1", "somevalue")
reqparm.Add("param2", "othervalue")
reqparm.Add("param3", "othervalue")
reqparm.Add("param4", "othervalue")
Dim responsebytes = client.UploadValues(http// : messaging.smscanal.com/sms/sendsms.jsp?user="param1"&password="param2"&mobiles="param3"&sms="param4", "POST")
Dim responsebody = (New Text.UTF8Encoding).GetString(responsebytes)
End Using