URL exists?
xbury.cs at clearstream.com
xbury.cs at clearstream.com
Fri Nov 7 08:14:13 EST 2003
Scott,
One way I do this (remember that getting a URL is a threaded event)
get ""
put "..." into dots
get url thislink
repeat while it is empty and timeout > waitedsecs
put "waiting for URL" & dots
wait one sec
put "." after dots
add 1 to waitedsecs
end repeat
foo it
---------------------=---------------------
Xavier Bury
TNS NT LAN Server
ext 6465
Scott Rossi <scott at tactilemedia.com>
Sent by: metacard-bounces at lists.runrev.com
07/11/03 08:00
Please respond to Discussions on Metacard
To: Metacard List <metacard at lists.runrev.com>
cc:
Subject: Re: URL exists?
.
On 11/6/03 10:23 PM, "Shari" <gypsyware at earthlink.net> wrote:
> What's the fastest way to check if an URL exists?
>
> I tried:
>
> if URL "http://www.whatever.com/something/else.html" is empty then
> blah blah blah
> end if
>
> Very very slow. Is there a faster way?
How do you define "very very slow"? When I use:
get url "http://www.blablabla.com/index.html"
answer it
...on a DSL connection, the answer is near instantaneous, especially with
a
bogus domain/address. If you think about it, how else can you determine
if
a url exists without actually trying it?
I have seen delays occur when there's heavy data to be returned. And I
would expect a dialup connection to be even slower. But it seems you
could
put up some kind of notice (ie "checking url - one moment...") to provide
feedback while the check takes place.
Are you looking for something else?
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
_______________________________________________
metacard mailing list
metacard at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/metacard
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE
Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.
The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.
END OF DISCLAIMER
More information about the metacard
mailing list