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.

> >> myImg: request-download 
> http://maps.dnr.state.mn.us/cgi-bin/mapserv36?map=/usr/local/
> www/docs/mapserver_demos/tests36/auto_rotate/test.map&mode=map&map
> _test_class_label_posi
> tion=CC&map_test_class_label_angle=0
> connecting to: maps.dnr.state.mn.us
> ** Access Error: Cannot open 
> /C/Progz/rebol/public/maps.dnr.state.mn.us/cgi-bin/mapserv3
> 6?map=/
> ** Near: make-dir/deep loc-path
> >>
> 
> :-(
> 
> Janeks

-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to