5

URI、URL、URN 差別

 2 years ago
source link: https://kim85326.github.io/2019/10/30/URI-URL-URN-%E5%B7%AE%E5%88%A5/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

URI、URL、URN 差別


    • Universal Resource Identifier 統一資源標誌符
    • 在某一規則下能把一個資源獨一無二標示出來

      https://developer.mozilla.org/en-US/docs/Learn
      tel:+1-816-555-1212
      [email protected]:mdn/browser-compat-data.git
      ftp://example.org/resource.txt
      urn:isbn:9780141036144
      
    • Universal Resource Locator 統一資源定位符
    • 類似一個人的住址
    • 標識一個網際網路資源,並指定對其進行操作或取得該資源的方法

      https://developer.mozilla.org
      https://developer.mozilla.org/en-US/docs/Learn/
      https://developer.mozilla.org/en-US/search?q=URL
      
    • Universal Resource Name 統一資源名稱
    • 類似一個人的名字
    • 基於某命名空間通過名稱指定資源的 URI
    • 人們可以通過 URN 來指出某個資源,而無需指出其位置和獲得方式

      urn:isbn:9780141036144
      urn:ietf:rfc:7230
      

每個 URL 都是 URI,但不一定每個 URI 都是 URL



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK