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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id DC060BB9A for ; Mon, 7 Nov 2005 22:19:07 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jA7LJ7SK011453 for ; Mon, 7 Nov 2005 22:19:07 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA18264 for ; Mon, 7 Nov 2005 22:19:07 +0100 (MET) Received: from web26810.mail.ukl.yahoo.com (web26810.mail.ukl.yahoo.com [217.146.176.86]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id jA7LJ6a9027885 for ; Mon, 7 Nov 2005 22:19:06 +0100 Received: (qmail 14102 invoked by uid 60001); 7 Nov 2005 21:19:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fmBcP0408d4sskuW9/dB2R+wVSFCmnxZyzCz0ykK2vI2gQzlp+MIGLDz9E6UbIhQdUZ3ZBN4iYmbem4Vvn/0BGNJt+pOAOGtMBogdOmBpzxZ6wo0AUDiTt4Ot3xZr30mn2bcp7zYLipCWwlLukgkBW6HVMw3arId7abAM+axFe0= ; Message-ID: <20051107211906.14100.qmail@web26810.mail.ukl.yahoo.com> Received: from [83.180.103.247] by web26810.mail.ukl.yahoo.com via HTTP; Mon, 07 Nov 2005 22:19:06 CET Date: Mon, 7 Nov 2005 22:19:06 +0100 (CET) From: Martin Chabr Subject: Get a page from the Web To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at nez-perce with ID 436FC4CB.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 436FC4CA.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.10; ocaml:01 ocaml:01 gesendet:98 jetzt:98 anmelden:98 python:02 martin:10 martin:10 something:12 snippet:13 www:85 using:15 U4:83 U4:83 von:83 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Hello, I have been looking for ways to get a page in HTML from the Web, using an OCaml program, something like the following Python snippet: import urllib URL = "http://www.ibm.com" url = urllib.urlopen(URL) html = url.read() You supply the URL and receive the page in HTML. Is there anything simple like that in OCaml? Regards, Martin ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de