[gambit-list] web server example

Fred Weigel fred_weigel at hotmail.com
Tue Jan 22 11:14:27 EST 2013


A sample web server is supplied with Gambit-C. I am using gsi 4.6.6

[fred at 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).





More information about the Gambit-list mailing list