Re: Test for valid URL?
Re: Test for valid URL?
- Subject: Re: Test for valid URL?
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 16 Sep 2010 11:29:44 -0400
A URI (Uniform Resource Identifier) is a unique string that names a
specific "resource", which is just as vague as it sounds. A URI
string has to follow a certain pattern, but beyond that it can be
opaque.
A URL (Uniform Resource Locator) is a URI, but one that includes
information about how to locate the resource being identified. So
mailto: URI's are in fact URL's, because an email address is a type of
locator.
There's another subclass of URI meant to complement URLs that hardly
ever gets used: URN (Uniform Resource Name), which is its own scheme
(urn://...) and is intended to be permanent and location-independent,
so even if the resource moves it remains valid. For instance, the
resource identified and located by a mailto: URL is a mailbox, which
might have different email addresses that all wind up at the same
place. That mailbox could have a unique URN that stays the same even
as the set of email addresses pointing to it change. Taking it back a
step, you might construe the resource instead to be the person who
gets mail at that mailbox, who could be associated with a URN that
stays the same even if they switch to a completely different mail
system...
On Thu, Sep 16, 2010 at 11:14 AM, Doug McNutt <email@hidden> wrote:
> At 10:59 -0400 9/16/10, Mark J. Reed wrote:
>>A URL doesn't even have to refer to a network. It's a very generic
>>syntax. mailto:email@hidden - you don't have to be able to ping
>>bar.com, or even connect to it on the SMTP port, for that to be a
>>valid URL and even a valid email address.
>
> I have never fully understood the difference but there are URI's and URL's in the lexicon. (That's a letter I in the first one.)
>
> I thought a file: and mailto: were URI designators and URL was for network links but I'd be happy to see a proper definition. I think all URL's are in fact members of the larger set called URI.
>
> And:
>
> The UNIX tool dig is usable for determining if the domain part of a URL is valid.
> --
>
> --> Halloween == Oct 31 == Dec 25 == Christmas <--
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden