EasyHTTPD

EasyHTTPD is a drop in C++ class to implement an HTTP 1.0 Server - Now with OpenSSL Support!
Download

EasyHTTPD Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Barry Sprajc
  • Publisher web site:
  • http://www.littletux.com/?q=node/1

EasyHTTPD Tags


EasyHTTPD Description

EasyHTTPD is a drop in C++ class to implement an HTTP 1.0 Server - Now with OpenSSL Support! EasyHTTPD is a drop in C++ class to implement an HTTP 1.0 Server - Now with OpenSSL Support! The class can be used to allow an application to be controlled by a browser, hence Embedded. To 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 get a pointer to the application via void ptr, has haccess to the extracted options and POST values, and then write the desired output back to the socket. For easy dynamic page generate, an HTML template file can be used, and the handler simply specifies token tags in the template to be replace with the dynamic values (aka search and replace )HOW TO USE IN YOUR APPLICATION:These classes use the STL (Standard Template Library), so your enviroment must have the STL available.Add the embedhttp.cpp file to your project, and the embedhttp.h file to the file(s) in your project that handles incomming socket connections. See the sample1.cpp and helloworld.cpp files to get an idea of how to use these classes.What's New in This Release:· Removed regex as a dependency. Regex library is no longer needed.· Added member functions to do the following:o Get the client headerso Send headers back to the cliento Specify alternate socket send/recv functions to support use with OpenSSLo Specify a pre-request handler, a handler that can be called for all requests before the specifc request handler get called· Fixed bug in helloworld_template.html. · Fixed bug in parse which occured when the client did not send any headers.· Added hello world sample using OpenSSL.· Added the wiki: http://www.littletux.com/wiki


EasyHTTPD Related Software