hakha4 Member Licensed User Longtime User Jun 23, 2015 #1 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: Copy 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
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: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2015 #2 Why do you need to open a browser for this? Use HttpUtils2 instead. Upvote 0