B4J Question Send command to webserver silently

Discussion in 'B4J Questions' started by hakha4, Jun 23, 2015.

  1. hakha4

    hakha4 Member Licensed User

    I need to send commands to a pc prog that listens on port 6246 from a B4J prog.
    With code below I can do this the 'clumsy' way that opens a browser everytime. I want to send data silently to listening webserver but can't figure out what method to use. Can anyone give me a hint how to do this.

    Code:
    Sub SendToMLS_webbport()
    Dim tmpStr As String' send : Command$SetVariable|TestVariable~Test
    tmpStr = txt_To_MLS.Text & CRLF
    Log(tmpStr)

    fx.ShowExternalDocument(
    "http://192.168.1.30:6246/" & tmpStr)


    End Sub
    Regards Håkan
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Why do you need to open a browser for this?

    Use HttpUtils2 instead.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice