What is the difference between a URI, a URL and a URN?

前端 未结 30 1335
小蘑菇
小蘑菇 2020-11-22 02:18

People talk about URLs, URIs, and URNs as if they\'re different things, but they look the same to the naked eye.

W

30条回答
  •  闹比i
    闹比i (楼主)
    2020-11-22 02:46

    The answer is ambiguous. In Java it is frequently used in this way:

    An Uniform Resource Locator (URL) is the term used to identify an Internet resource including the scheme( http, https, ftp, news, etc.). For instance What is the difference between a URI, a URL and a URN?

    An Uniform Resource Identifier (URI) is used to identify a single document in the Web Server: For instance /questions/176264/whats-the-difference-between-a-uri-and-a-url

    In Java servlets, the URI frequently refers to the document without the web application context.

提交回复
热议问题