-
쉬운 URL과 URL의 차이개발공부/CS지식 2022. 2. 2. 20:53
코딩 중에 HttpRequestServlet 기능 중에 URI 기능을 사용했다.
URL은 질리도록 사용했는데 URI는 무엇일까?request.getRequestURI();
URL URI URN 차이
URI는 상위 개념.
URL, URN은 URI에 속한 하위 개념이라고 볼 수 있다.
모두 HTTP로 자원에 접근하기 위한 식별자로 활용 된다.출처 : https://programming119.tistory.com/194 차이점?
우선 현재 (2022.02.02) 시점에서 가장 보편적인 것은 URL 사용이다.
URL, URN, URI 차이점을 실생활에 비유해서 설명해본다.
URI는 "박형민"이라는 이름으로 박형민을 한국에서 찾는 행위(식별)이다. 수천, 수만의 박형민이라는 결과가 나올 것이다.
(URL, URN을 포함하는 개념)
Uniform Resource Identificator : "박형민이라는 것을 식별"
URL은 "인천 00구 00아파트 00호에 거주하는 박형민"으로 한국에 박형민의 위치를 찾는 행위이다.
Uniform Resource Locator 어떤 경로에 위치해있는지 찾는다. : 위치 - 어디라는 관점에서 자원에 접근!
URN은 "박형민"이라는 고유 이름을 찾는 행위
Uniform Resource Name : 고유 자원 이름으로 탐색 - 무엇이라는 관점에서 자원에 접근!
출처
https://www.w3.org/TR/uri-clarification/URIs, URLs, and URNs: Clarifications and Recommendations 1.0
This paper addresses and attempts to clarify two issues pertaining to URIs, and presents recommendations. Section 1 addresses how URI space is partitioned and the relationship between URIs, URLs, and URNs. Section 2 describes how URI schemes and URN namesp
www.w3.org
https://stackoverflow.com/questions/176264/what-is-the-difference-between-a-uri-a-url-and-a-urnWhat is the difference between a URI, a URL and a URN?
People talk about URLs, URIs, and URNs as if they're different things, but they look the same to the naked eye. What are the distinguishable differences between them?
stackoverflow.com
https://developer.mozilla.org/ko/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web#urns웹 리소스 식별 - HTTP | MDN
HTTP 요청 대상을 "리소스"라고 부르는데, 그에 대한 본질을 이 이상으로 정의할 수 없습니다; 그것은 문서, 사진 또는 다른 어떤 것이든 될 수 있습니다. 각 리소스는 리소스 식별을 위해 HTTP
developer.mozilla.org
반응형'개발공부 > CS지식' 카테고리의 다른 글
배포 방식 정리 - Rolling, Blue-Green, Canary (1) 2024.01.24 개발문서 - 컨플루언스(Confluence) 입문 (0) 2023.07.16 네트워크- 네트워크 정의, 패킷, 비트, 바이트, LAN, WAN (0) 2022.01.10 REST API란? (0) 2022.01.10 동기와 비동기 (0) 2021.11.15