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 BAA12845; Tue, 3 Sep 2002 01:30:08 +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 BAA12741 for ; Tue, 3 Sep 2002 01:30:07 +0200 (MET DST) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g82NU6D05141 for ; Tue, 3 Sep 2002 01:30:06 +0200 (MET DST) Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id g82NU2Ec013068 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Tue, 3 Sep 2002 01:30:02 +0200 Received: (from uucp@localhost) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with UUCP id g82NU1pQ013065; Tue, 3 Sep 2002 01:30:01 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: caml-list@inria.fr Received: from localhost (oliver@localhost) by first.in-berlin.de (8.7.6/8.7.3) with SMTP id BAA02643; Tue, 3 Sep 2002 01:24:23 +0200 Date: Tue, 3 Sep 2002 01:24:23 +0200 (MET DST) From: Oliver Bandel To: Gerd Stolpmann cc: Caml list Subject: Re: [Caml-list] Ocaml-Weblib? In-Reply-To: <20020902221540.GA818@ice.gerd-stolpmann.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 3 Sep 2002, Gerd Stolpmann wrote: [...] > No, I have not yet found the time to do it. There are some aspects > that cannot be explained in mli files well enough, and a tutorial > would be a great thing. E.g. why ocamlnet has an object-oriented > layer on top of channels (netchannels). You find them everywhere, > but no introduction. > > There is an "examples" directory containing some very simple, and > some advanced examples, especially for CGI programming. Yes, I have seen it. The simple CGI-example is very nice. :) Looks like easy programming. :) The advanced examples are a littlebid too large for Ocaml-and-ocamlnet-beginners. ;-) I first asked, because I want to write two different tools: first one: a wget-like tool, which can parse the html-pages (if possible, this f..... javascript-stuff too) and can download not only recursively, but can also select the pages for download e.g. by pattern-matching on href-tags (url or text of the link) or by selection of filesizes or so. And the second tool I wanted to write was a similar tool for nntp-protocol: Download by attributes (size, date, MsgID, Subject, author, thread-length, ...). (I once wrote such stuff (not completed) in Perl and after the program grew more and more, it becomes more and more a mess...). So I need access to sockets, some low-level stuff (Unix.read) and such, or a good library, which helps here. I need a library, which can parse me the html-pages and maybe nntp-headers, and I want only to implement the logic of the tool, and let the network stuff programming be the work, that the lib can do. And I hope the ocamlnet/netstring can help here. But if it will be more effort to understand the library than writing the networking-code by myself, then I will write the sockets-stuff by myself. That's all about it. Ciao, Oliver P.S.: Don't forget: I'm not Ocaml-user since years... ...since some months - and ONLY IF I HAD SOME TIME - could do some Ocaml-programming. So a documentation/tutorial would help a lot. P.P.S.: IMHO OCaml is a very complex language. ------------------- 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