About the EasyHTTPD Embedded Server/Parser

Its intended use is to allow applications to be controlled by a browser, hence embedded.

To add this functionality to an app, add the C++ class to the application, write and register request callback handlers with the class, and call the parser with a connected socket.

The parser will extract any options passed in the URL, extract POST values, and call the desired handler.

The handler gets a pointer to the application via void ptr, has access to the extracted options and POST values, and then writes the desired output back to the socket.

For easy dynamic page generate, HTML template files are used, and the handler simply specifies token tags in the template to be replaced with the dynamic values.

Only a few line of code are needed to get started.
Best of all, it's Open Source, free, with a BSD license

  • View sample C++ code for the HTTP Server
  • See the navigation menu for the Wiki, Documentation, and Downloads