title: Implementing a very small HTTP server in c/c++ and want to use AJAX
body: <p>I want to have a dynamic webpage that automaticly updates some information, this information should be received from my c/c++ application using HTTP. I have set up a socket and can send HTML and Javascript files to the browser. </p>
  
  <p>I don't know how to move on. How to encapsulate my data into XMLHttpRequest objects? Or maybe this isn't the way to go? The problem is that my c/c++ application will be run on an embedded system that can't really support php or something like that.<br>
  I can't really understand how XMLHttpRequest works, I only find a lot of client examples on the web and not much about how a server should handle it.</p>