Click here to Skip to main content
15,941,444 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am using this code but is this i have to use a android app in mobile that is serive enable then it is create ip and user name and password then you have to install a desktop app in your computer and then use app code your own as i did in visual studio but problem is this that app not purchased then they use their by default sms some words like this is by send ozeki.com some this like this any one tell how and what is process they use and how can i make or guide any one what is way they ding all i understand all that a application in android device it is provided a link and same application company use that and send sms as i want exact

What I have tried:

Imports System
Imports System.IO
Imports System.Net
Imports System.Text
Imports System.Web

Public Class fMain

 Private Sub bSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bSend.Click
        Dim request As HttpWebRequest
        Dim response As HttpWebResponse = Nothing
        Dim url As String
        Dim username As String
        Dim password As String
        Dim host As String
        Dim originator As String

        Try

            host = "http://127.0.0.1:9501"
            originator = "06201234567"
            username = "admin"
            password = "abc123"

            url = host + "/api?action=sendmessage&" _
                     & "username=" & HttpUtility.UrlEncode(username) _
                     & "&password=" + HttpUtility.UrlEncode(password) _
                     & "&recipient=" + HttpUtility.UrlEncode(tbReceiver.Text) _
                     & "&messagetype=SMS:TEXT" _
                     & "&messagedata=" + HttpUtility.UrlEncode(tbMessage.Text) _
                     & "&originator=" + HttpUtility.UrlEncode(originator) _
                     & "&serviceprovider=GSMModem1" _
                     & "&responseformat=html"

            request = DirectCast(WebRequest.Create(url), HttpWebRequest)

            response = DirectCast(request.GetResponse(), HttpWebResponse)

            MessageBox.Show("Response: " & response.StatusDescription)

        Catch ex As Exception
        End Try
    End Sub
End Class
Posted
Updated 9-Mar-19 9:43am

You're going to have to ask Ozeki.

A quick look at their site, has this example[^] using HTTP.

There's also the C# examples, which seems to be more flexible, here[^].

If you try to tell me "but I don't know C#!". I'm going to tell you you're wrong. C# is not that much different from VB.NET. There are also online converters that can convert sections of code for you and come up with a reasonably good translation.

Keep in mind, if you're putting a password into a URL to connect to the service, you should really NOT use that as you're sending a password in CLEAR TEXT over a network channel that can be intercepted at any point.
 
Share this answer
 
Comments
[no name] 9-Mar-19 11:13am    
Wow, +5
irfanansari 9-Mar-19 15:14pm    
sir i am really sorry you not understanding me i am saying it is working fine but when i got a sms from my side to other side there is also include botton a text by ozeki software by default and i can nor stop it i want to just sms as i am writing as used to do in gsm modem by using AT Commands what we write that shows just those words not any water mark
Dave Kreskowiak 9-Mar-19 15:45pm    
That makes a bit more sense.

Yes you CAN stop it. Buy a license to use the service.

Oh, and if is the actual code you're using, you're sending your password to use the service in CLEAR TEXT, meaning anyone with any kind of sniffer can see your password.

You sure you still want to use that service?
irfanansari:
...problem is this that app not purchased then they use their by default sms some words like this is by send ozeki.com
You're using the free trial edition of the product, which appends the "nag" message to your texts.
SMS Gateway - Manual, Trial version limitations[^]

The simple answer is to purchase a license for the product instead of using the evaluation version.
 
Share this answer
 
Comments
irfanansari 9-Mar-19 15:57pm    
sir i am sorry please do not be cray at me i just need help and try yo learn is there any other way or am want to learn this is possible can i make a same android app apk as ozeki give for buy and test what is way they create

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