Here are some sample files in my folder (in game folder /u/t/tim/public_html/), for testing different aspects of the web server (including some features that aren't implemented yet, even if they -appear- to work) and also to demonstrate how some things can be made:
- cartman.svg [validate] is a static SVG file I downloaded from W3C's sample folder. The web server should just serve up the file itself, and use content type based on file name being *.svg
- cartinline.html [validate] is actually generated by cartinline.c which is an LPC object that returns a page of HTML5 code with the cartman.svg contained in it
- cart.svg [validate] is an LPC object called cart.svg.c that returns the contents of the cartman.svg file. The web server should (but does not yet) serve up the resulting text and use svg content type based on file name being *.svg.c To a web visitor it should act exactly as the static file does, except behind the scenes it's coming from an LPC object.
- graph.html [validate] is a HTML page with a dynamically generated SVG graphic inside of it
- icon.ico currently gives a 404, but will be generated by icon.ico.c and it has a function that returns binary data that is the content of an icon file. Because it's not set up properly yet, you can go to the same link with .html added at end and some browsers will show the icon at the moment.
- keen.html [validate] is generated by keen.c, which will read a gif file into a variable and then convert it with base64 function (a simul efun that I wrote) and include the file in the page itself.