There are som many examples about b4j web-servers and I have difficulties in finding the correct sample.
If I create a Handle, for instance "/gen", how can I pass on to the server a value such 1+2 and make it send back to my app the answer i.e. 3
for instance, I send the following request: http://localhost:17178/gen?1+2
(not sure how I would create the string)
and back I would receive the answer i.e. 3 which I could parse from the response.
Basically I want the server to do an "operation" for me and then send back the result.
Many thanks.
If I create a Handle, for instance "/gen", how can I pass on to the server a value such 1+2 and make it send back to my app the answer i.e. 3
for instance, I send the following request: http://localhost:17178/gen?1+2
(not sure how I would create the string)
and back I would receive the answer i.e. 3 which I could parse from the response.
Basically I want the server to do an "operation" for me and then send back the result.
Many thanks.