HTTP server and client

jgbozza

Member
Licensed User
Longtime User
Hello folks!

In my application I have a local database in the android tablet that needs to be updated from a web browser on a remote desktop.
There will be a form to be filled by the user and when he submits this form (pointed to tablet IP in the http source code) the tablet will read the fields and write them to variables in order to update or insert the values to my local database.

I can establish comunication between tablet and desktop on a wifi network but instead of http I made it on a serial terminal to avoid the crap from headers and http codes, but it was just a test...I really need to use a friendly interface at the desktop end.

On the other hand I must send information to the desktop in order to insert values to its database but I did get to do it using httputils2 as following:

job.PostString("http://10.1.1.4", "filed1=" & box1.Text & "&filed2=" & box2.text). Is this the rigthest way to do it ?

Dont have even a clue on how to start!:sign0104:
 

jgbozza

Member
Licensed User
Longtime User
I did it, but the tablet must keep listening to fire the HandleRequest event (wich takes long time thou).
What could I do when I want the tablet to play the client role instead? Ex.: Send a string to be inserted in the desktop server database.

Tks Erel!
 
Upvote 0

jgbozza

Member
Licensed User
Longtime User
Erel,

It is working but the HandleRequest takes a long time to fire. I make a request from the browser in the desktop and the tablet takes something like 20-30 seconds to send the answer. (redirect the browser in this case)

Any clue ? I tried to chage DHCP to Fixed IP but it seems like hasnt changed the response time so far.

Thanks
 
Upvote 0
Top