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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 59BF6BBBB for ; Mon, 13 Mar 2006 09:03:27 +0100 (CET) Received: from web38209.mail.mud.yahoo.com (web38209.mail.mud.yahoo.com [209.191.124.152]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id k2D83QUt008558 for ; Mon, 13 Mar 2006 09:03:26 +0100 Received: (qmail 40776 invoked by uid 60001); 13 Mar 2006 08:03:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qfylOc4bXWd0zRm6djksH2sTG2VhTbk4tG0HznPedPAiIzXCgW2TP3Ho+scBb+baaZxVD5eUPf5STj6Wbgy+XU9eOeOz+FjwsJO0XkaoqLZY9Y2gg9wDnbSgKfbYEuRE19+mFKC4pD4Cj3EEQ/yCYA6ybUP4YGNhIYOFCdtZe48= ; Message-ID: <20060313080325.40774.qmail@web38209.mail.mud.yahoo.com> Received: from [68.122.70.86] by web38209.mail.mud.yahoo.com via HTTP; Mon, 13 Mar 2006 00:03:25 PST Date: Mon, 13 Mar 2006 00:03:25 -0800 (PST) From: Jean-David Reply-To: jean-david@GameBox.net Subject: Netclient To: caml-list@yquem.inria.fr In-Reply-To: <20060312110003.86F9EBBE1@yquem.inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 4415274E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; netclient:01 string:02 let:03 stream:04 stream:04 edu:08 streams:08 file:08 memory:08 wondering:09 body:89 body:89 content:89 content:89 spam:88 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: *** X-Spam-Status: No, score=3.0 required=5.0 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_WHOIS,FORGED_YAHOO_RCVD autolearn=disabled version=3.0.3 Hello there, I was wondering about the best way to create a stream from a remote file for which I have the URL open Http_client open Stream let body = Stream.of_string Convenience.http_get "http://dfl.sjsu.edu";; Is the content of body downloaded completely before being streamed(which defeats the purpose of streams) or not? and if not how can I get the content of an URL gradually (without getting the whole body into memory)? Thank you, JD __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com