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 1DBD2BB9A for ; Mon, 7 Nov 2005 22:47:04 +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 jA7Ll3Mi014061 for ; Mon, 7 Nov 2005 22:47:03 +0100 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 WAA19112 for ; Mon, 7 Nov 2005 22:47:03 +0100 (MET) Received: from web26803.mail.ukl.yahoo.com (web26803.mail.ukl.yahoo.com [217.146.176.79]) by nez-perce.inria.fr (8.13.0/8.13.0) with SMTP id jA7Ll22a014057 for ; Mon, 7 Nov 2005 22:47:02 +0100 Received: (qmail 44584 invoked by uid 60001); 7 Nov 2005 21:47:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=HwM56EXcYalAnz/sU6FSpyS45KVRTRnAyfWoqcbWU/BLjU8vEHcNLxB+KgXkNcr7Qf7EkSCtkhNwm2Zf8fk9+fqxVQ04f/Xa76Dp6n0/QnkP6pboH6MYLW0q6+a9Nse6+oTRGqY4CNI5+EEHT9lJoeq68tjmZH+fZlIz7FLDUkQ= ; Message-ID: <20051107214702.44582.qmail@web26803.mail.ukl.yahoo.com> Received: from [83.180.103.247] by web26803.mail.ukl.yahoo.com via HTTP; Mon, 07 Nov 2005 22:47:02 CET Date: Mon, 7 Nov 2005 22:47:02 +0100 (CET) From: Martin Chabr Subject: Ant: Re: [Caml-list] Get a page from the Web To: Karl Zilles Cc: caml-list@inria.fr In-Reply-To: <436FC866.4090709@1969web.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at nez-perce with ID 436FCB57.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 436FCB56.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 curl:98 gesendet:98 jetzt:98 anmelden:98 wrote:01 sourceforge:01 binding:02 python:02 library:03 schrieb:08 martin:10 martin:10 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 That was fast! Thank you, Karl, I will have a look. Martin --- Karl Zilles schrieb: > Martin Chabr wrote: > > 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? > > I use the Ocaml binding to the curl library. It has > worked well for me > and it can handle high level details like > maintaining cookies across > calls (for session continuity and logins): > > http://sourceforge.net/projects/ocurl/ > ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de