From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id oBPKkUdb001894 for ; Sat, 25 Dec 2010 21:46:30 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvMBAPPlFU3AbSoIe2dsb2JhbACDZJI0jhkVAQEWIgQgrkOPVQ2BE4M2dASFIQ X-IronPort-AV: E=Sophos;i="4.60,229,1291590000"; d="scan'208";a="83467368" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Dec 2010 21:46:24 +0100 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from first (e178032212.adsl.alicedsl.de [85.178.32.212]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id oBPKkNbn022817 for ; Sat, 25 Dec 2010 21:46:24 +0100 Received: by first (Postfix, from userid 1000) id 9B43B44179B; Sat, 25 Dec 2010 21:46:23 +0100 (CET) Date: Sat, 25 Dec 2010 21:46:23 +0100 From: oliver@first.in-berlin.de To: caml-list@inria.fr Message-ID: <20101225204623.GC10952@siouxsie> References: <20101225004412.GA10078@siouxsie> <4D15A634.9000309@gmail.com> <20101225183021.GA9316@siouxsie> <20101225202101.GA12780@siouxsie> <4D165360.3010806@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4D165360.3010806@gmail.com> 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] https... which lib? On Sat, Dec 25, 2010 at 10:26:08PM +0200, Török Edwin wrote: > On 2010-12-25 22:21, oliver@first.in-berlin.de wrote: > > On Sat, Dec 25, 2010 at 07:30:21PM +0100, oliver@first.in-berlin.de wrote: > >> On Sat, Dec 25, 2010 at 10:07:16AM +0200, Török Edwin wrote: > >>> On 2010-12-25 02:44, oliver@first.in-berlin.de wrote: > >>>> Hi, > >>>> > >>>> AFAIK I can't use ocamlnet for https-files?! > >>>> > >>>> Which lib do I need for that? > >>> > >>> I used libcurl-ocaml for https recently. > >> [...] > >> > >> http://curl.haxx.se/libcurl/ocaml/ > >> > >> Has a simple easy-to-start example... > >> ... and https works out of the box. > > [...] > > > > But documentation lacks.... > > > > The functions seem not to have the same names as the C-counterparts... > > > > What function do I need for not getting the webpage printed to stdout, > > but into a string? > > Here's a snippet from my code: > > let new_curl_connection () = > let buffer = Buffer.create 4096 > and connection = new Curl.handle in > let write_function str = > Buffer.add_string buffer str; > String.length str; [...] OK, that's nice. Thanks a lot again. :) Ciao, Oliver