WebServer
Up to Development Discussion
We have reworked the WebServer code significantly. Now it is based on the nice ServerSocket and Socket calls. We have also added a mechanism to plug in your own handlers for certain addresses. For example you can mount a handler to be called back whenever a browser requests a particular address the beginning of which matches a handler address (e.g. the handler with address "/device" will be called whenever a browser requests "/device", "/device/1", etc.). There are some simple helper functions for writing the HTTP header and some HTML help too. For illustration, there's a simple example handler built in at "/test" which replies "Test" and a number of hits. The good old task, free memory, etc. page is available at "/info" and all other non matched addresses.
The code is in subversion, and will make it into the upcoming release.
Please let us know how it works for you.
Powered by
Ploneboard

