URI
는 통합 자원 식별자라고도 부르며, 인터넷에 상의 자원들을 식별하는 것이다. URI는 locator, name 혹은 둘 다 추가로 분류될 수 있다. 위치는 변할 수 있으나 이름은 변하지 않는다. 그리고 이름으로 자원을 찾는 방법이 보편화 되지 않아 URL이 대중적이다.
URL
, Uniform Resource Locator) hierarchical part
┌─────────────────────────────┴─────────────────────────────┐
authority path
┌──────────────────────┴─────────────────────┐┌──────┴──────┐
abc://username:password@example.com:123/path/data?key=value#fragid1
└─┬─┘ └──────────┬──────────┘└───────┬────────┘ └─┬─┘ └────┬──────┘└────┬─────┘
scheme user information host port query fragment
urn:example:mammal:monotreme:echidna
└┬─┘ └──────────────────────┬─────────────────────┘
scheme path
scheme://[userinfo@]host[:port][/path][?query][#fragment]
https://www.google.com:443/search?q=hello&hl=ko
- scheme, 프로토콜 : https
- 호스트명 : www.google.com
- 포트 : 443
- 패스 : /search
- 쿼리 파라미터 : q=hello&hl=ko