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 KAA29432; Tue, 11 Nov 2003 10:21:27 +0100 (MET) 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 KAA29549 for ; Tue, 11 Nov 2003 10:21:26 +0100 (MET) Received: from mwinf0804.wanadoo.fr (smtp8.wanadoo.fr [193.252.22.23]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAB9LQ121016 for ; Tue, 11 Nov 2003 10:21:26 +0100 (MET) Received: from iliana (AStrasbourg-206-1-2-80.w217-128.abo.wanadoo.fr [217.128.59.80]) by mwinf0804.wanadoo.fr (SMTP Server) with ESMTP id CF58918000F1; Tue, 11 Nov 2003 10:21:25 +0100 (CET) Received: from luther by iliana with local (Exim 3.36 #1 (Debian)) id 1AJUiE-0001HQ-00; Tue, 11 Nov 2003 10:21:26 +0100 Date: Tue, 11 Nov 2003 10:21:26 +0100 To: Pierre LAFFITTE Cc: caml-list Subject: Re: [Caml-list] access to the internet Message-ID: <20031111092126.GA4903@iliana> References: <25885621.1068486985089.JavaMail.www@wwinf0203> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <25885621.1068486985089.JavaMail.www@wwinf0203> User-Agent: Mutt/1.5.4i From: Sven Luther X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sven:01 luther:01 sven:01 luther:01 pierre:01 ocaml:01 caml:01 nov:01 external:03 module:03 wrote:03 library:03 internet:94 internet:94 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Nov 10, 2003 at 06:56:25PM +0100, Pierre LAFFITTE wrote: > Is it possible from a caml program, to give an internet adress, to get the result in a file or in a set of character to analyse it. I have been searching for exactly that some time ago, but i think it is not possible. Your best guess currently is to call the external wget program, save it to a temporary file, and then read it in. I agree that a full url-reading module would be a good addition to the ocaml library though, java has it for example. Friendly, Sven Luther ------------------- 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