From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA31977; Mon, 11 Oct 2004 10:58:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA32086 for ; Mon, 11 Oct 2004 10:58:05 +0200 (MET DST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i9B8w5wf014929 for ; Mon, 11 Oct 2004 10:58:05 +0200 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CGw0J-0007Ij-00; Mon, 11 Oct 2004 10:58:03 +0200 Received: from [80.129.108.42] (helo=gate.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CGw0J-00011i-00; Mon, 11 Oct 2004 10:58:03 +0200 Received: from ice.gerd-stolpmann.de (ice [192.168.0.13]) by gate.gerd-stolpmann.de (Postfix) with ESMTP id 97509C6CC; Mon, 11 Oct 2004 10:58:01 +0200 (CEST) Received: by ice.gerd-stolpmann.de (Postfix, from userid 1000) id CACD9B030; Mon, 11 Oct 2004 10:57:59 +0200 (CEST) Subject: Re: [Caml-list] libwww for OCaml From: Gerd Stolpmann To: Richard Jones Cc: caml-list@inria.fr In-Reply-To: <20041011075142.GA26347@annexia.org> References: <20041011075142.GA26347@annexia.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1097485078.1149.77.camel@ice.gerd-stolpmann.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 11 Oct 2004 10:57:59 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at nez-perce with ID 416A4B1D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 libwww:01 gerd:01 stolpmann:01 2004:99 libwww:01 netclient:01 netclient:01 pipelining:01 gerd:01 stolpmann:01 viktoriastr:01 64293:01 darmstadt:01 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 2004-10-11 at 09:51, Richard Jones wrote: > I wonder if anyone has done an OCaml binding for libwww[1]. A cursory > Google search doesn't turn up anything. > > I also wonder if people can comment on libwww vs. Curl (ocurl[2]). I > wish to make requests to a webserver and receive the replies. The > library must support cookies, and it would be better if it also > supported keepalives. Netclient is your friend: http://www.ocaml-programming.de/programming/netclient.html It is a 100% O'Caml implementation of HTTP/1.1. Take the "experimental" version, it is quite stable. You get not only keepalives, but also pipelining and parallel handling of several requests. The only drawback is that it always downloads into memory. I guess this library is the reason why there isn't a libwww binding... Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners