[REBOL] Re: hook while downloading from html port [http][port]

2004-04-15 Thread Maxim Olivier-Adlhoch
- From: "Jones, Scott" Sent: Thursday, April 15, 2004 8:35 PM Subject: [REBOL] Re: hook while downloading from html port From: Anton Rolls AR> Scott, I think you are a bit negative about transfer rates. :) AR> Surely there is a way. ... It was one of those things were as soon as I sent

[REBOL] Re: hook while downloading from html port

2004-04-15 Thread Jones, Scott
From: Anton Rolls AR> Scott, I think you are a bit negative about transfer rates. :) AR> Surely there is a way. ... It was one of those things were as soon as I sent my email, I, too, thought of a way to show progress, but our satellite signals times are limited. My guess is that there will al

[REBOL] Re: hook while downloading from html port [read-net]

2004-04-15 Thread Maxim Olivier-Adlhoch
hi, wrt my last mail, the patch was ugly, containing prints and probes... here is a clean version with an example script to show the difference between loading a file for which size is not known and one that is: (as usual beware of wrapping lines...) ;-patch--

[REBOL] Re: hook while downloading from html port [read-net]

2004-04-15 Thread Maxim Olivier-Adlhoch
AND THE WINNER IS. > -Original Message- > From: Brett Handley > Have a look at /progress refinement on function Read-net. ;-) read-net... - EXACTLY - what I was looking for. another nifty function... cool thing is that its not a native, and we can source it, and then ma

[REBOL] Re: hook while downloading from html port

2004-04-15 Thread Gabriele Santilli
Hi Maxim, On Thursday, April 15, 2004, 4:23:51 PM, you wrote: MOA> what does "implement an HTTP client on top of it MOA> involve"? is that completely writing an http scheme or can I MOA> borrow the one from within rebol and merge it? Borrowing the one in REBOL wouldn't work, as async://

[REBOL] Re: hook while downloading from html port

2004-04-15 Thread Maxim Olivier-Adlhoch
> -Original Message- > From: Gabriele Santilli [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 15, 2004 6:01 AM > To: Andreas Bolka > Subject: [REBOL] Re: hook while downloading from html port > > > If you only need to report in/out speed in bytes/s or so

[REBOL] Re: hook while downloading from html port

2004-04-15 Thread Gabriele Santilli
Hi Andreas, On Wednesday, April 14, 2004, 8:09:45 PM, you wrote: >> I was wondering, if its possible to put a hook somewhere (even if >> deep) within the port or more specifically the html port handler, so >> that we can update something elsewhere, do statistics or print out >> transfer rate for

[REBOL] Re: hook while downloading from html port

2004-04-15 Thread Brett Handley
Hi, Have a look at /progress refinement on function Read-net. If this is insufficient, you could take Scott and Anton's approach further and maybe even allow a way to specify a on-read callback function using the /custom refinement - which might be what Anton was implying. Regards, Brett.

[REBOL] Re: hook while downloading from html port

2004-04-15 Thread Anton Rolls
Scott, I think you are a bit negative about transfer rates. :) Surely there is a way. Here also, is an easier way to save the scheme: write clipboard:// join {rebol [] system/schemes/http:} mold system/schemes/http Now open your favourite editor, paste into a new file and save. Uh oh,

[REBOL] Re: hook while downloading from html port

2004-04-14 Thread Jones, Scott
From: Maxim Olivier-Adlhoch ... I was wondering, if its possible to put a hook somewhere (even if deep) within the port or more specifically the html port handler, so that we can update something elsewhere, do statistics or print out transfer rate for example... ... Hi, Max, Since no one has of

[REBOL] Re: hook while downloading from html port

2004-04-14 Thread Andreas Bolka
Wednesday, April 14, 2004, 6:45:13 AM, Maxim wrote: > I was wondering, if its possible to put a hook somewhere (even if > deep) within the port or more specifically the html port handler, so > that we can update something elsewhere, do statistics or print out > transfer rate for example... I gu