A sample web server is supplied with Gambit-C. I am using gsi 4.6.6
[fred@dejah Gambit-C]$ gsi Gambit v4.6.6
and tried the web server (for inclusion into some of my own code). I do like the design, but there seems to be a bug. In http.scm line 827, there is a reference to function (print). The problem is that (print) doesn't produce ANY output on "port", and the contents are then interpreted as a flat text file. I replaced (print) with (display), and the thing works (as expected).
Running on Fedora 17 Linux, with the invocation
gsi base64 html http web-server 8000
(as recommended).