English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Netclient
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-03-13 (08:03)
From: Jean-David <merdoq@y...>
Subject: Netclient
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