From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id oBPNAVbs005795 for ; Sun, 26 Dec 2010 00:10:31 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlQCANIIFk3AbSoIe2dsb2JhbACDZJI0jhkVAQEWIgQgrliPSg2BE4M2dASFIQ X-IronPort-AV: E=Sophos;i="4.60,229,1291590000"; d="scan'208";a="93190992" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 26 Dec 2010 00:10:26 +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 oBPNAPiC028331 for ; Sun, 26 Dec 2010 00:10:25 +0100 Received: by first (Postfix, from userid 1000) id 2D75644179B; Sun, 26 Dec 2010 00:10:25 +0100 (CET) Date: Sun, 26 Dec 2010 00:10:25 +0100 From: oliver@first.in-berlin.de To: caml-list@inria.fr Message-ID: <20101225231025.GA17456@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? Hi, some more questions... 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? > [...] > connection#set_timeout Config.timeout; > connection#set_followlocation true; > connection#set_connecttimeout Config.connect_timeout; [...] The method set_timeout and the method set_connecttimeout, what are they for and which value do they use? I would assume to set one timeout, not two. Is it in milli-seconds? btw: I didn't found the docs for the OCaml-bindings of above mentioned methods. Also in the curl-lib-binding it's mentioned that only the "easy-interface" is bound, but the OCaml-bindings offer much more functions than those some of the easy-interface (http://curl.haxx.se/libcurl/c/libcurl-easy.html => 26 functions, the mli contains a lot more) . So, somehow at some place the docs seem to be outdated (?). If you have a link to a more up-to-date documentatiopn, if this exists, could you sent me a link to that?! Ciao, Oliver P.S.: Does the method set_followlocation set, if that curllib-connection is follwoing a redirect?