From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 2823EBBAF for ; Mon, 19 Apr 2010 00:16:52 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkBALshy0vAbSoIkWdsb2JhbACQAYt4FQEBAQEJCwoHEQQeuS+FEAQ X-IronPort-AV: E=Sophos;i="4.52,232,1270418400"; d="scan'208";a="60892929" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Apr 2010 00:16:51 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from localhost (okapi.in-berlin.de [192.109.42.117]) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id o3IMGoL1001039 for ; Mon, 19 Apr 2010 00:16:50 +0200 Received: from e178027220.adsl.alicedsl.de (e178027220.adsl.alicedsl.de [85.178.27.220]) by webmail.in-berlin.de (Horde Framework) with HTTP; Mon, 19 Apr 2010 00:16:50 +0200 Message-ID: <20100419001650.129848d0xobbxp76@webmail.in-berlin.de> Date: Mon, 19 Apr 2010 00:16:50 +0200 From: "Oliver Bandel" To: caml-list@yquem.inria.fr Subject: ocamlnet ( Http_client and other stuff ) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.3.3 X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Spam: no; 0.00; bandel:01 in-berlin:01 ocamlnet:01 pcre:01 ocamlnet:01 lib:01 libs:01 pcre:01 netstring:01 netstring:01 webpages:98 oliver:01 oliver:01 modules:02 btw:03 Hi, after using Nethtml for HTNML-parsing (nice!) and Pcre (nice!) I now want to use other modules from the ocamlnet stuff. At the moment I want just write a simple webfile retriever. So, some http-get stuff for webpages. But later I may need more advanced features. Some years ago I tried some of the ocamlnet stuff, but have forgotten the details. As far as I can remember, there was an OO-based lib, which makes web access very easy, but for more specialized stuff, such as cookies, one should use the http_client library, because that OO-stuff did only provide simple protocoll stuff. I'm not sure if the other OO-stuff was enhanced since then. Is there an overview on the different libs, with recommendations, which library is useful for what task? Some examples also would be fine. BTW: there is Pcre as well as Netstring_pcre. When to use which? Should I always prefer Netstring_pcre for web stuff? Ciao, Oliver