请输入您要查询的百科知识:

 

词条 URL
释义

  1. History

  2. Syntax

  3. Internationalized URL

  4. Protocol-relative URLs {{anchor|prurl}}

  5. See also

  6. Notes

  7. Citations

  8. References

  9. External links

{{pp-semi-indef}}{{other uses}}

A Uniform Resource Locator (URL), colloquially termed a web address,{{sfnp|W3C|2009}} is a reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identifier (URI),[1]{{sfnp|RFC 3986|2005}} although many people use the two terms interchangeably.{{sfnp|Joint W3C/IETF URI Planning Interest Group|2002}}{{efn|A URL implies the means to access an indicated resource and is denoted by a protocol or an access mechanism, which is not true of every URI.{{sfnp|RFC 2396|1998}}{{sfnp|Joint W3C/IETF URI Planning Interest Group|2002}} Thus http://www.example.com is a URL, while www.example.com is not.[2]}} URLs occur most commonly to reference web pages (http), but are also used for file transfer (ftp), email (mailto), database access (JDBC), and many other applications.

Most web browsers display the URL of a web page above the page in an address bar. A typical URL could have the form http://www.example.com/index.html, which indicates a protocol (http), a hostname (www.example.com), and a file name (index.html).

History

Uniform Resource Locators were defined in {{IETF RFC|1738}} in 1994 by Tim Berners-Lee, the inventor of the World Wide Web, and the URI working group of the Internet Engineering Task Force (IETF),{{sfnp|W3C|1994}} as an outcome of collaboration started at the IETF Living Documents Birds of a feather session in 1992.{{sfnp|IETF|1992}}{{sfnp|Berners-Lee|1994}}

The format combines the pre-existing system of domain names (created in 1985) with file path syntax, where slashes are used to separate directory and filenames. Conventions already existed where server names could be prefixed to complete file paths, preceded by a double slash (//).{{sfnp|Berners-Lee|2000}}

Berners-Lee later expressed regret at the use of dots to separate the parts of the domain name within URIs, wishing he had used slashes throughout,{{sfnp|Berners-Lee|2000}} and also said that, given the colon following the first component of a URI, the two slashes before the domain name were unnecessary.{{sfnp|BBC News|2009}}

An early (1993) draft of the HTML Specification[3] referred to "Universal" Resource Locators. This was dropped some time between June 1994 (RFC 1630) and October 1994 (draft-ietf-uri-url-08.txt).[4]

Syntax

{{main|Uniform Resource Identifier#Generic syntax}}

Every HTTP URL conforms to the syntax of a generic URI. {{#section:Uniform resource identifier|syntax}}

A web browser will usually dereference a URL by performing an HTTP request to the specified host, by default on port number 80. URLs using the https scheme require that requests and responses be made over a secure connection to the website.

Internationalized URL

Internet users are distributed throughout the world using a wide variety of languages and alphabets and expect to be able to create URLs in their own local alphabets. An Internationalized Resource Identifier (IRI) is a form of URL that includes Unicode characters. All modern browsers support IRIs. The parts of the URL requiring special treatment for different alphabets are the domain name and path.{{sfnp|W3C|2008}}{{sfnp|W3C|2014}}

The domain name in the IRI is known as an Internationalized Domain Name (IDN). Web and Internet software automatically convert the domain name into punycode usable by the Domain Name System; for example, the Chinese URL http://例子.卷筒纸 becomes http://xn--fsqu00a.xn--3lr804guic/. The xn-- indicates that the character was not originally ASCII.{{sfnp|IANA|2003}}

The URL path name can also be specified by the user in the local writing system. If not already encoded, it is converted to UTF-8, and any characters not part of the basic URL character set are escaped as hexadecimal using percent-encoding; for example, the Japanese URL http://example.com/引き割り.html becomes http://example.com/%E5%BC%95%E3%81%8D%E5%89%B2%E3%82%8A.html. The target computer decodes the address and displays the page.{{sfnp|W3C|2008}}

Protocol-relative URLs {{anchor|prurl}}

Protocol-relative links (PRL), also known as protocol-relative URLs (PRURL), are URLs that have no protocol specified. For example, //example.com will use the protocol of the current page, either HTTP or HTTPS.[5][6]

See also

{{div col|colwidth=20em}}
  • CURIE (Compact URI)
  • Use of slashes in networking
  • Fragment identifier
  • Internationalized resource identifier (IRI)
  • Semantic URL
  • Typosquatting
  • Uniform Resource Identifier
  • URL normalization
{{div col end}}

Notes

{{notelist|30em}}

Citations

1. ^{{Cite web|url=https://zzz.buzz/2017/09/19/forward-and-backslashes-in-urls/|title=Forward and Backslashes in URLs|website=zzz.buzz|language=en|access-date=2018-09-19}}
2. ^{{Cite web|url=https://danielmiessler.com/study/url-uri/#gs.Hs64zOs|title=The Difference Between URLs and URIs|last=Miessler|first=Daniel|date=|website=|archive-url=|archive-date=|dead-url=|access-date=}}
3. ^{{cite techreport |title=Hypertext Markup Language (draft RFCxxx) |first1=Tim |last1=Berners-Lee |first2=Daniel |last2=Connolly |date=March 1993 |page=28 |url=https://www.ucc.ie/archive/curia/dtds/html-spec.ps}}
4. ^{{cite techreport |title=Uniform Resource Locators (URL) |first1=T |last1=Berners-Lee |first2=L |last2=Masinter |first3=M |last3=McCahill |date=October 1994 |url=http://ds.internic.net/internet-drafts/draft-ietf-uri-url-08.txt}} cited in {{cite techreport |title=Constituent Component Interface++ |first1=C.S. |last1=Ang |first2=D.C. |last2=Martin | publisher=UCSF Library and Center for Knowledge Management |date=January 1995 |url=https://listserv.heanet.ie/cgi-bin/wa?A2=ind9501&L=HTML-WG&P=R23201&X=C6F9505B05BC9A3B67&}}
5. ^{{cite book |url=https://books.google.com/books?id=6u2sBAAAQBAJ&pg=PA193 |title=Secure Development for Mobile Apps: How to Design and Code Secure Mobile Applications with PHP and JavaScript |publisher=CRC Press |author= J. D. Glaser |year=2013 |page=193 |accessdate=12 October 2015}}
6. ^{{cite book |url=https://books.google.com/books?id=DW0uyBZzEDwC&pg=PT124 |title=HTML, XHTML, and CSS Bible |publisher=John Wiley & Sons |author=Steven M. Schafer |year=2011 |page=124 |accessdate=12 October 2015}}

References

{{refbegin|30em}}
  • {{cite web|url=http://news.bbc.co.uk/1/hi/technology/8306631.stm |title=Berners-Lee "sorry" for slashes|publisher=BBC News|date=2009-10-14|accessdate=2010-02-14|ref={{SfnRef|BBC News|2009}}}}
  • {{cite web|url=http://www.w3.org/Conferences/IETF92/WWX_BOF_mins.html|title=Living Documents BoF Minutes|publisher=World Wide Web Consortium|date=18 March 1992|accessdate=2011-12-26|ref={{SfnRef|IETF|1992}}}}
  • {{cite web|url=http://www.w3.org/Addressing/URL/url-spec.txt|title=Uniform Resource Locators (URL): A Syntax for the Expression of Access Information of Objects on the Network|first=Tim|last=Berners-Lee|authorlink=Tim Berners-Lee|date=21 March 1994|publisher=World Wide Web Consortium|accessdate=13 September 2015|ref={{SfnRef|W3C|1994}}}}
  • {{cite web|url=http://tools.ietf.org/html/rfc1738|title=Uniform Resource Locators (URL)|author1-first=Tim|author1-last=Berners-Lee|author1-link=Tim Berners-Lee|author2-first=Larry|author2-last=Masinter|author3-first=Mark|author3-last=McCahill|publisher=Internet Engineering Task Force|date=August 1998|accessdate=31 August 2015|ref={{SfnRef|RFC 1738|1994}}}}
  • {{cite web|url=http://www.w3.org/People/Berners-Lee/FAQ.html#etc|first=Tim|last=Berners-Lee|authorlink=Tim Berners-Lee|work=Frequently asked questions|title=Why the //, #, etc?|orig-year=2000|year=2015|publisher=World Wide Web Consortium|accessdate=2010-02-03|ref={{SfnRef|Berners-Lee|2000}}}}
  • {{cite web|url=http://www.w3.org/html/wg/href/draft#url|title=Web addresses in HTML 5|editor1-first=Dan|editor1-last=Connolly|editor2-first=C. M.|editor2-last=Sperberg-McQueen|date=21 May 2009|publisher=World Wide Web Consortium|accessdate=13 September 2015|ref={{SfnRef|W3C|2009}}}}
  • {{cite web|url=http://www.atm.tut.fi/list-archive/ietf-announce/msg13572.html|title=Completion of IANA Selection of IDNA Prefix|author=Internet Assigned Numbers Authority|work=IETF-Announce mailing list|date=14 February 2003|accessdate=3 September 2015|ref={{SfnRef|IANA|2003}}}}
  • {{cite web|url=http://tools.ietf.org/html/rfc2396|title=Uniform Resource Identifiers (URI): Generic Syntax|author1-first=Tim|author1-last=Berners-Lee|author1-link=Tim Berners-Lee|author2-first=Roy|author2-last=Fielding|author2-link=Roy Fielding|author3-first=Larry|author3-last=Masinter|publisher=Internet Engineering Task Force|date=August 1998|accessdate=31 August 2015|ref={{SfnRef|RFC 2396|1998}}}}
  • {{cite web|url=https://tools.ietf.org/html/rfc7595|title=Guidelines and Registration Procedures for URI Schemes|editor-first=D.|editor-last=Thaler|author1-first=T.|author1-last=Hansen|author2-first=T.|author2-last=Hardie|publisher=Internet Engineering Task Force|date=June 2015|issn=2070-1721|ref={{SfnRef|IETF|2015}}}}
  • {{cite web|url=https://tools.ietf.org/html/rfc3305|title=Report from the Joint W3C/IETF URI Planning Interest Group: Uniform Resource Identifiers (URIs), URLs, and Uniform Resource Names (URNs): Clarifications and Recommendations|editor1-first=M.|editor1-last=Mealling|editor2-first=R.|editor2-last=Denenberg|publisher=World Wide Web Consortium|date=August 2002|accessdate=13 September 2015|ref={{SfnRef|Joint W3C/IETF URI Planning Interest Group|2002}}}}
  • {{cite web|url=http://tools.ietf.org/html/rfc3986|title=Uniform Resource Identifiers (URI): Generic Syntax|author1-first=Tim|author1-last=Berners-Lee|author1-link=Tim Berners-Lee|author2-first=Roy|author2-last=Fielding|author2-link=Roy Fielding|author3-first=Larry|author3-last=Masinter|publisher=Internet Engineering Task Force|date=January 2005|accessdate=31 August 2015|ref={{SfnRef|RFC 3986|2005}}}}
  • {{cite web|title=An Introduction to Multilingual Web Addresses|url=http://www.w3.org/International/articles/idn-and-iri/|date=9 May 2008|accessdate=11 January 2015|ref={{SfnRef|W3C|2008}}}}
  • {{cite web|title=What is Happening with "International URLs"|first=A.|last=Phillip|url=https://www.w3.org/International/wiki/IRIStatus|publisher=World Wide Web Consortium|year=2014|accessdate=11 January 2015|ref={{SfnRef|W3C|2014}}}}
{{refend}}

External links

  • [https://url.spec.whatwg.org/ URL specification] at WHATWG
{{Hypermedia}}{{Use dmy dates|date=May 2011}}

3 : URL|Identifiers|Computer-related introductions in 1994

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 7:52:42