Android Tutorial Embed an Http Server in your Android Application

Status
Not open for further replies.

lorebarita

Member
Licensed User
Longtime User
php with httpserver

Hi is it possible to have php running with this http server library?
Thanks
Lorenzo
 

javiman6969

Member
Licensed User
Longtime User
And insert data into a table

an example of how to insert data into the database?

 

augustin.thierry.sin

New Member
Licensed User
Longtime User
Hello,
Thanks you for this library !
But I've got a problem with it, i don't know how I can display a variable from the main program in the web server. :sign0085:
 

augustin.thierry.sin

New Member
Licensed User
Longtime User
Hello,
I do not want to make a text field, I have a random variable with a timer (to change the value) and I need to display it into the website. How I should do it ?
Thanks.
 

dune3000

Member
Licensed User
Longtime User
Hi, Erel

Thanks for your great lib!
I want to make a simple REST server.
There is a problem, I use Firefox to test the server, but I don't know how to get the Body Message.



How can I do that?
 

Attachments

  • RESTsend.jpg
    27.1 KB · Views: 1,687

Erel

B4X founder
Staff member
Licensed User
Longtime User
Currently HttpServer supports two types of requests. GET requests where the parameters are send in the URL and multipart/form-data POST requests (as send from all the standard html Forms). These are the most common types of requests that can be sent from a browser. I guess that you are using a Filefox plug-in for this POST request.
 

dune3000

Member
Licensed User
Longtime User
You are right, Erel. I use the REST Client plugin to test my server, because my REST client(on other device) uses the same method to send the request.
Now I need all your HTTP server's function, if I can touch the original data of "multipart/form-data", it will be perfect for me!

Thanks.
 

dilettante

Active Member
Licensed User
Longtime User
File transfers are slower as files are encoded in base64 (according to the multipart protocol).
Does this mean your program can't send a dynamically created image as a response to a request?
 

bernd33

New Member
Licensed User
Longtime User
Version?

Hi,

wich version of Jetty is this?

Dose Websockets work? If yes, has somebody already used this?

The reason why I ask: I have some Atmega Microcontrollers with network interface. This uC are controlled by a Android mobile phone (communication with UDP). Works realy well.

With a HttpServer it's possible to controll the Microcontollers from any device (Windows, Apple, Android). Great. But, to see actual values from the Microcontollers I have alway to reload the page.

Maybe, it's possible with Websockets to make a "realtime view/control" Webpage for the Microcontrollers?

Comments would be great...

Regards, Bernd
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…