> url: http://www.someserver/somefile.rm
> 
>  http: open/direct/binary url
> 
>  print "http opened."
> 
> while [true] [
>   w: wait [http]
> 
> {more code here}
> 
> ]
> 
> it fails on the w: wait[http] line. why?
> wait works on a tcp port, I know that from another project.
>   Does wait not work with an http port?

That might be a bug... it's being looked into.


> I ran the url through my IE browser and it never timed out,
> but you could watch, after about around a megabyte of data,
> the download rate would plummet as if the server basically
> lost interest in the request.
> 
> Then, I found that after cancelling, when I requested the same
> url, IE was smart enough to just resume where it left off.
> Well, it took about 20 re-tries, but I eventually got the 14.3 MB file.

IE resumed the download because it hadn't wiped the file from it's
cache just yet... you're lucky with a file that big.

> Now, don't tell me you are going to let IE lick you!

NEVER!!!!  Divide and conquer!  Remember the Alamo!  I've not yet
begun to fight!

> How can I do the same thing (dowload the whole file) in Rebol?

You need to invoke a magic incantation and sacrifice your Perl
installation to your newfound REBOL gods.

> is there a way to specify restarting a download in Rebol http?

Funny you should ask.  I've just been discussing this exact thing with 
Julian Kinraid.  He's already modified both the FTP and HTTP protocols 
to allow restarts of downloads.  We'll be covering these possible
additions in our next devel meeting but that stuff wouldn't be out
'til next release and I'd hate to make you all wait like that.

So what I'm going to do is post some unsupported protcols onto
REBOL.org that have these modifications.  It'll take a little time so
don't _expect_ them to be there by the time you see this mail though
they might be.  I'll make the page at:

http://www.rebol.org/unsupported/

So you can check back there for them.  I'll post a message when it's
all there.

> is there a way to set it so it won't timeout?
> Note: the timeout is actually on the client side,
> because IE never times out...?

I don't think so right now.

> The file I am trying to download is
> 
> http://www.grafxsource.com/RnaG/6-3-00-Caitlin-45.rm
> 
> It's basically a capture of a couple of hours of Irish radio.
> 
> -galt
> 

You also asked in another message about the size of the file.  IF the
server reports it (and you trust that), then once you do open/direct
on the http file, you can use port/size to see the size:

>> http: open/direct/binary http://www.grafxsource.com/RnaG/6-3-00-Caitlin-45.rm
>> http/size
== 15182055

Yup.  It's big.
Well, you'll excuse me now.  I just promised to do something and I
guess I'll do it now.

Sterling

Reply via email to