Hi there...
about B4J Server...
i have some... "silly" question
i want the client work from browser and send query to get response... like this:
Actually when geta = 100 the server will response a msg.... easy but somewhere lost the ball..
I am totally wrong....
about B4J Server...
i have some... "silly" question
i want the client work from browser and send query to get response... like this:
B4X:
www.myserver.ext:54021/myhandler?geta=100
Actually when geta = 100 the server will response a msg.... easy but somewhere lost the ball..
B4X:
'Class module
Sub Class_Globals
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize
End Sub
Sub Handle(req As ServletRequest, resp As ServletResponse)
Dim In As InputStream = req.InputStream
Dim reqType As String = req.GetParameter("geta")
resp.ContentType = "text/html"
Dim tr As TextReader
tr.Initialize(In)
if reqtype="geta" and tr.readall="100" then
resp.write("SOMETHING!")
End If
End Sub
I am totally wrong....