Reputation: 1187
Is mailto:[email protected]
a valid URL or a valid URI? Or both?
I need to choose a parsing library and I need to know this first in order to choose correctly.
Upvotes: 1
Views: 603
Reputation: 96697
If you follow the contemporary view, the distinction between URI and URL is not useful. It’s recommended to use either URI or URL for everything. In practice, the terms are often used synonymously.
The two organizations mentioned below followed the recommendation to use only one term, but they didn’t use the same.
Quotes and links in this answer.
It’s a URI.
(According to RFC 6068, which is currently IETF’s spec for the mailto
URI scheme, via Uniform Resource Identifier (URI) Schemes.)
A previous RFC has called it URL (RFC 2368).
It’s a URL.
(According to the URL Living Standard.)
Upvotes: 2