Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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
VB
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900