Uniform Resource Identifier
Uniform Resource Identifier (URI) is a string of characters used to identify a resource on the Internet. It enables the identification of resources available over the network, such as web pages, images, and services, by location, name, or both. The concept of URIs is a fundamental component of the World Wide Web and is standardized by the Internet Engineering Task Force (IETF) in RFC 3986.
Overview[edit | edit source]
A URI provides a simple and extensible means for identifying a resource. It encompasses both Uniform Resource Locators (URLs), which are locators (addresses) of resources, and Uniform Resource Names (URNs), which are names for resources. While all URLs and URNs are URIs, not all URIs are URLs or URNs. The distinction lies in the fact that URLs describe the address at which a resource can be found, including the protocol required to retrieve it (e.g., HTTP, FTP), while URNs define a resource's identity in a namespace, independent of where it is located.
Syntax[edit | edit source]
The syntax of a URI is defined in RFC 3986. A URI consists of several components, some of which may be optional, depending on the type of URI. The general syntax is:
scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]
- Scheme: Indicates the protocol to be used to access the resource (e.g., http, https, ftp). - User:Password: Optional credentials for accessing the resource. - Host: The domain name or IP address of the server hosting the resource. - Port: Optional port number if the service is running on a non-default port. - Path: The specific path to the resource on the server. - Query: Optional query parameters for accessing the resource. - Fragment: An optional fragment identifier for referring to a subsection of the resource.
Usage[edit | edit source]
URIs are used extensively on the Internet to locate and access resources. They are the foundation of web browsing, allowing web browsers to retrieve web pages, images, and other content from web servers. URIs are also used in many other contexts, such as in XML namespaces, to identify namespaces uniquely.
Encoding[edit | edit source]
Special characters in a URI must be percent-encoded to ensure they are correctly interpreted by web servers and clients. This involves replacing the character with a '%' followed by two hexadecimal digits representing the character's ASCII code. For example, spaces in a URI are replaced with '%20'.
Standardization[edit | edit source]
The standardization of URIs is crucial for ensuring interoperability across different systems and applications on the Internet. The IETF's RFC 3986 is the current standard that defines the syntax and semantics of URIs.
See Also[edit | edit source]
This article is a stub. You can help WikiMD by registering to expand it. |
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD