[REBOL] Re: Status for read (load) Re: Re: url restrictions
From: antonr::lexicon::net at: 19-Jan-2005 18:51
Rebol's PATH-THRU (used eventually by request-download),
does not do anything about illegal filenames (ie. containing
the character "?". So when request-download goes to save
the file, it fails.
I suggest you either specify your own location for the file
like this:
request-download/to url %image.gif
view layout [image %image.gif]
which I think you probably want to do anyway (placing your
own map/ directory somewhere nice), or you need to make
your own version of path-thru which creates a good filename
even when given "bad" characters like "?", and make a modified
version of request-download which uses that.
I was actually thinking about this recently - it annoys me once
every while that I can't cache rebol.org scripts easily (
just by the idiom READ-THRU url).
Doing a good job of fixing it is a large task. You need to find
out what the allowed characters are for each platform
supported by rebol, then munge the filenames in such a way
that there are not likely to be collisions, etc..
Anton.