From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id oBNJjuEd017930 for ; Thu, 23 Dec 2010 20:45:56 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtECABQ1E03AbSoIe2dsb2JhbACDZJItjhoVAQEWIgQgsGeQVg2BE4M2dAQ X-IronPort-AV: E=Sophos;i="4.60,220,1291590000"; d="scan'208";a="84647578" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Dec 2010 20:45:50 +0100 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from first (e178024157.adsl.alicedsl.de [85.178.24.157]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id oBNJjnOV030469 for ; Thu, 23 Dec 2010 20:45:49 +0100 Received: by first (Postfix, from userid 1000) id 54CB044221B; Thu, 23 Dec 2010 20:45:49 +0100 (CET) Date: Thu, 23 Dec 2010 20:45:48 +0100 From: oliver@first.in-berlin.de To: caml-list@inria.fr Message-ID: <20101223194548.GA2452@siouxsie> References: <20101222193907.GA8091@siouxsie> <1293061753.22147.517.camel@thinkpad> <20101223135228.GA3651@siouxsie> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20101223135228.GA3651@siouxsie> User-Agent: Mutt/1.5.20 (2009-06-14) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: Re: [Caml-list] Ocamlnet and sending Referrer On Thu, Dec 23, 2010 at 02:52:28PM +0100, oliver@first.in-berlin.de wrote: [...] > > Hmhhh > > strange, I get syntax errors with the following: It's not strange. Strange is that I didn't saw the problem ;) > > =========================================================== > module Networking = > struct > open Pcre > > open Http_client > > let call = new get "http://www.ocaml.org" in > (call # request_header `Base) # update_field "Referer" "foobar"; [...] Inside that module call it at toplevel, and therefore the "in" is nonsense of course, or I had to encapsulate that stuff inside a function. So, thanks Gerd for hinting me to the Pipeline-stuff, and sorry for the traffic. Ciao, Oliver