Has anyone figured out a way ever to check if there's an
internet connection in MetaCard?
Low-tech: Try to download a small but known url. Trap error.
$0.02 please.
/H
___
metacard mailing list
[EMAIL PROTECTED]
Has anyone figured out a way ever to check if there's an
internet connection in MetaCard?
Low-tech: Try to download a small but known url. Trap error.
$0.02 please.
/H
___
metacard mailing list
[EMAIL PROTECTED]
On Friday, November 7, 2003, at 03:09 PM, Richard Gaskin wrote:
Shari wrote:
My fella keeps trying to talk me into getting DSL, but we're in
disagreement on who spends the extra to get it ;-)
It'll change your life. I'd give up cable TV in a heartbeat if it
were a
tradeoff between that and
On 11/6/03 10:23 PM, Shari [EMAIL PROTECTED] 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
it
-=-
Xavier Bury
TNS NT LAN Server
ext 6465
Scott Rossi [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
07/11/03 08:00
Please respond to Discussions on Metacard
To: Metacard List [EMAIL PROTECTED]
cc:
Subject:Re: URL exists?
.
On 11/6/03 10:23 PM
I think the only way that will be technically faster than this would be
to use sockets, and make a HEAD request, rather than a GET for the url
in question.
You'd have to look up http protocol, but basically what it does it let
you get just the http headers for a page rather than the contents.
remember that getting a URL is a threaded event
Do you mean blocking? When I put a large url, the script doesn't progress
until the url data has been completely retrieved. Also, I believe Dave
Cragg has confirmed that get url is a blocking call, which is why he
developed the
PROTECTED]
07/11/03 08:42
Please respond to Discussions on Metacard
To:Metacard List [EMAIL PROTECTED]
cc:
Subject:Re: URL exists?
.
remember that getting a URL is a threaded event
Do you mean blocking? When I put a large url, the script doesn't progress
until
At 1:23 am -0500 7/11/03, Shari 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?
You'll get different results, depending on whether the host server
I think the only way that will be technically faster than this would
be to use sockets, and make a HEAD request, rather than a GET for
the url in question.
You'd have to look up http protocol, but basically what it does it
let you get just the http headers for a page rather than the
contents.
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?
Dave,
I will try your handler. Thanks!
My fella keeps trying to talk me into getting DSL, but we're in
disagreement on who spends the extra to get it ;-)
Shari
--
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
Shari wrote:
My fella keeps trying to talk me into getting DSL, but we're in
disagreement on who spends the extra to get it ;-)
It'll change your life. I'd give up cable TV in a heartbeat if it were a
tradeoff between that and broadband. As a software professional the time
save uploading and
Sivakatirswami wrote/ schreef:
I tried:
exists (URL "http://www.gurudeva.org/index.html")
but it doesn't work even if the file is on the web site.
??Did I do something wrong?
Try:
if url "http://www.gurudeva.org/index.html" is empty then
answer "The page doesn't exist."
end
14 matches
Mail list logo