Code for writing a simple web server to be put in a printer
Posted on 2004-08-13
Let me give you the background of what I have to do. I am going to put a product of mine in a Printer ROM and then control it from the web browser on my PC. Its like any Canon or Ricoh printers, if you want to change some settings on the printer, either you go to the printer console or you put the IP address of the printer in the web browser and the settings page pops up from where you can change the settings. Routers is another example.
So this conversion product needs to know how to process the files coming to it. For that it needs settings, I want to put some setting pages (created in some web language) inside the ROM that can be called from the web browser so I need a simple web server that I can use to call the pages and subsequently pass my options in the form of a file to the product.
I can write the web server but just need some basic code to get me started. Printer runs on Linux.