English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Ocaml-Weblib?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-02 (23:30)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Ocaml-Weblib?
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

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.


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