[REBOL] exists? Re:
From: brett:codeconscious at: 14-Sep-2000 16:18
Seems like a good idea to have this sort of functionality.
Have a look at the source of exists? (>> source exists?)
It shows that exists? uses a function called query to do the work. Exists?
actually traps exceptions thrown by query.
I tried query on a page needing a password and part of the exception text
Server response: HTTP/1.1 401 Authorization Required.
By forwarding do you mean meta refresh? (I'm still learning this stuff)
If so then we are talking about interpreting the meaning of the HTML
contents of the page. As far as I know, Rebol does not go this far in any
function. Doesn't stop you from creating a set of functions for this sort of
On this, my understanding of HTTP is that there is also a HEAD request -
useful where you do not want the body of the HTML but only the HEAD section.
[I hope that is correct] I don't think that Rebol supports this directly,
but I'm thinking it might be nice to have it - maybe a READ/HEAD or
READ/HTTP target 'head - whatever. Can anyone else comment on the usefulnes