From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 16D22BC69 for ; Tue, 20 Mar 2007 14:39:07 +0100 (CET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2KDd6R0020390 for ; Tue, 20 Mar 2007 14:39:06 +0100 Received: from [84.59.109.250] (helo=gate.lan.gerd-stolpmann.de) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1HTeYM11LZ-00057u; Tue, 20 Mar 2007 14:39:06 +0100 Received: from flakew.lan.gerd-stolpmann.de (fw.lan.gerd-stolpmann.de [192.168.1.1]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 0DB43C074; Tue, 20 Mar 2007 14:39:06 +0100 (CET) Subject: Re: [Caml-list] Embedded web server From: Gerd Stolpmann To: Joel Reymont Cc: Caml List In-Reply-To: References: <1174392949.11709.6.camel@localhost.localdomain> Content-Type: text/plain Date: Tue, 20 Mar 2007 14:39:05 +0100 Message-Id: <1174397945.11709.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18XcyIVpKmmkXhjAIVzCnkK7Bqx1KxPbbdy+gh qDqtGjgSRKC4UzkEAtshDe+JtdgVJ0pQ20HrxJ32OKROk4tBZF SQ84qZdqvKBGimJlpNFEMMvaWe33phg X-Miltered: at discorde with ID 45FFE3FA.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; gerd:01 stolpmann:01 gerd:01 stolpmann:01 ocamlnet:01 ocamlnet:01 ocaml:01 ocaml:01 lib:01 viktoriastr:01 64293:01 darmstadt:01 6151:01 6151:01 dienstag:98 Am Dienstag, den 20.03.2007, 12:31 +0000 schrieb Joel Reymont: > Gerd, > > On Mar 20, 2007, at 12:15 PM, Gerd Stolpmann wrote: > > > ocamlnet (ocamlnet.sf.net) has a web server library called > > nethttpd. It > > is e.g. used for www.camlcity.org. > > Is the site hosted without Apache, Lighttpd, etc.? Just plain OCaml? Yes, only plain OCaml. > Is the source code for camlcity available anywhere? Yes: https://gps.dynxs.de/svn/app-linkdb/trunk/ Please note: This is currently a bit hackish, because the linkdb application was originally an ordinary CGI. I more or less pressed it into the nethttpd frame. The interesting module is probably linkdb/lib/cgi which creates some kind of fake CGI environment for the rest of the program. So it is working, but no good example, and the code is not well-structured. The main program is currently in linkdb/test. The netplex.cfg isn't the real one. Documentation is lightyears out of date. Hope you find it still impressive. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------