Title: Catching Web Site Access Errors
Hi,
you may try the following:
exists?: func [
{ Determines if a file or URL
exists. Checks for invalid
HTML pages. } target [file!
url!] /local port comp ts][ if
error? try
[ port:
make port!
target
query port ] [return false] if not
Hi Melvin,
if error? error: try [
read http://www.does-not-exist.com
] [
error: disarm :error probe error
]
connecting to: www.does-not-exist.com
make object! [
code: 507
type: access
id: no-connect
arg1: "www.does-not-exist.com"
arg2: none
arg3: