Intern
What is a URI (Uniform Resource Identifier)?
sobes.tech AI
Answer from AI
URI (Uniform Resource Identifier) is a string of characters used to identify a resource. This can be a web page, image, file, or any other object on a network or local system.
There are two main types of URI:
- URL (Uniform Resource Locator): Specifies the location of the resource and how to access it.
- URN (Uniform Resource Name): Uniquely identifies the resource but does not specify its location.
The structure of a URI typically includes:
- Scheme (e.g.,
http,https,ftp,mailto) - Authority (e.g., domain name or IP address)
- Path to the resource
- Query string (additional parameters)
- Fragment (section within the resource)
Example URL:
https://www.example.com/path/to/resource?param1=value1¶m2=value2#section