URL

URL
Uniform resource locator
AbbreviationURL
StatusPublished
First published1994; 30 years ago (1994)
Latest versionLiving Standard
2023
OrganizationInternet Engineering Task Force (IETF)
CommitteeWeb Hypertext Application Technology Working Group (WHATWG)
SeriesRequest for Comments (RFC)
EditorsAnne van Kesteren
AuthorsTim Berners-Lee
Base standards
  • RFC 1738. – Uniform Resource Locators (URL).
  • RFC 3986. – Uniform Resource Identifier (URI): Generic Syntax.
  • RFC 4248. – The telnet URI Scheme.
  • RFC 4266. – The gopher URI Scheme.
  • RFC 6068. – The 'mailto' URI Scheme.
  • RFC 6196. – Moving mailserver: URI Scheme to Historic.
  • RFC 6270. – The 'tn3270' URI Scheme.
Related standardsURI, URN
DomainWorld Wide Web
LicenseCC BY 4.0
Websiteurl.spec.whatwg.org

A uniform resource locator (URL), colloquially known as an address on the Web,[1] is a reference to a 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),[2][3] although many people use the two terms interchangeably.[4][a] URLs occur most commonly to reference web pages (HTTP/HTTPS) 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 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),[7] as an outcome of collaboration started at the IETF Living Documents birds of a feather session in 1992.[7][8]

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 (//).[9]

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,[9] and also said that, given the colon following the first component of a URI, the two slashes before the domain name were unnecessary.[10]

Early WorldWideWeb collaborators including Berners-Lee originally proposed the use of UDIs: Universal Document Identifiers. An early (1993) draft of the HTML Specification[11] referred to "Universal" Resource Locators. This was dropped some time between June 1994 (RFC 1630) and October 1994 (draft-ietf-uri-url-08.txt).[12] In his book Weaving the Web, Berners-Lee emphasizes his preference for the original inclusion of "universal" in the expansion rather than the word "uniform", to which it was later changed, and he gives a brief account of the contention that led to the change.

Syntax

Every HTTP URL conforms to the syntax of a generic URI. The URI generic syntax consists of five components organized hierarchically in order of decreasing significance from left to right:[13]: §3 

URI = scheme ":" ["//" authority] path ["?" query] ["#" fragment]

A component is undefined if it has an associated delimiter and the delimiter does not appear in the URI; the scheme and path components are always defined.[13]: §5.2.1  A component is empty if it has no characters; the scheme component is always non-empty.[13]: §3 

The authority component consists of subcomponents:

authority = [userinfo "@"] host [":" port]

This is represented in a syntax diagram as:

URI syntax diagram

The URI comprises:

  • A non-empty scheme component followed by a colon (:), consisting of a sequence of characters beginning with a letter and followed by any combination of letters, digits, plus (+), period (.), or hyphen (-). Although schemes are case-insensitive, the canonical form is lowercase and documents that specify schemes must do so with lowercase letters. Examples of popular schemes include http, https, ftp, mailto, file, data and irc. URI schemes should be registered with the Internet Assigned Numbers Authority (IANA), although non-registered schemes are used in practice.[b]
  • An optional authority component preceded by two slashes (//), comprising:
    • An optional userinfo subcomponent followed by an at symbol (@), that may consist of a user name and an optional password preceded by a colon (:). Use of the format username:password in the userinfo subcomponent is deprecated for security reasons. Applications should not render as clear text any data after the first colon (:) found within a userinfo subcomponent unless the data after the colon is the empty string (indicating no password).
    • A host subcomponent, consisting of either a registered name (including but not limited to a hostname) or an IP address. IPv4 addresses must be in dot-decimal notation, and IPv6 addresses must be enclosed in brackets ([]).[13]: §3.2.2 [c]
    • An optional port subcomponent preceded by a colon (:), consisting of decimal digits.
  • A path component, consisting of a sequence of path segments separated by a slash (/). A path is always defined for a URI, though the defined path may be empty (zero length). A segment may also be empty, resulting in two consecutive slashes (//) in the path component. A path component may resemble or map exactly to a file system path but does not always imply a relation to one. If an authority component is defined, then the path component must either be empty or begin with a slash (/). If an authority component is undefined, then the path cannot begin with an empty segment—that is, with two slashes (//)—since the following characters would be interpreted as an authority component.[16]: §3.3 
By convention, in http and https URIs, the last part of a path is named pathinfo and it is optional. It is composed by zero or more path segments that do not refer to an existing physical resource name (e.g. a file, an internal module program or an executable program) but to a logical part (e.g. a command or a qualifier part) that has to be passed separately to the first part of the path that identifies an executable module or program managed by a web server; this is often used to select dynamic content (a document, etc.) or to tailor it as requested (see also: CGI and PATH_INFO, etc.).
Example:
URI: "http://www.example.com/questions/3456/my-document"
where: "/questions" is the first part of the path (an executable module or program) and "/3456/my-document" is the second part of the path named pathinfo, which is passed to the executable module or program named "/questions" to select the requested document.
An http or https URI containing a pathinfo part without a query part may also be referred to as a 'clean URL,' whose last part may be a 'slug.'
Query delimiter Example
Ampersand (&) key1=value1&key2=value2
Semicolon (;)[d] key1=value1;key2=value2
  • An optional query component preceded by a question mark (?), consisting of a query string of non-hierarchical data. Its syntax is not well defined, but by convention is most often a sequence of attribute–value pairs separated by a delimiter.
  • An optional fragment component preceded by a hash (#). The fragment contains a fragment identifier providing direction to a secondary resource, such as a section heading in an article identified by the remainder of the URI. When the primary resource is an HTML document, the fragment is often an id attribute of a specific element, and web browsers will scroll this element into view.

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.[18][19]

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.[20]

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.[18]

Protocol-relative URLs

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, typically HTTP or HTTPS.[21][22]

See also

Notes

  1. ^ 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.[5][4] Thus http://www.example.com is a URL, while www.example.com is not.[6]
  2. ^ The procedures for registering new URI schemes were originally defined in 1999 by RFC 2717, and are now defined by RFC 7595, published in June 2015.[14]
  3. ^ For URIs relating to resources on the World Wide Web, some web browsers allow .0 portions of dot-decimal notation to be dropped or raw integer IP addresses to be used.[15]
  4. ^ Historic RFC 1866 (obsoleted by RFC 2854) encourages CGI authors to support ';' in addition to '&'.[17]: §8.2.1 

Citations

  1. ^ W3C (2009).
  2. ^ "Forward and Backslashes in URLs". zzz.buzz. Archived from the original on 2018-09-04. Retrieved 2018-09-19.
  3. ^ RFC 3986 (2005).
  4. ^ a b Joint W3C/IETF URI Planning Interest Group (2002).
  5. ^ RFC 2396 (1998).
  6. ^ Miessler, Daniel. "The Difference Between URLs and URIs". Archived from the original on 2017-03-17. Retrieved 2017-03-16.
  7. ^ a b W3C (1994).
  8. ^ IETF (1992).
  9. ^ a b Berners-Lee (2015).
  10. ^ BBC News (2009).
  11. ^ Berners-Lee, Tim; Connolly, Daniel "Dan" (March 1993). Hypertext Markup Language (draft RFCxxx) (Technical report). p. 28. Archived from the original on 2017-10-23. Retrieved 2017-10-23.
  12. ^ Berners-Lee, Tim; Masinter, Larry; McCahill, Mark Perry (October 1994). Uniform Resource Locators (URL) (Technical report). (This Internet-Draft was published as a Proposed Standard RFC, RFC 1738 (1994)) Cited in Ang, C. S.; Martin, D. C. (January 1995). Constituent Component Interface++ (Technical report). UCSF Library and Center for Knowledge Management. Archived from the original on 2017-10-23. Retrieved 2017-10-23.
  13. ^ a b c d T. Berners-Lee; R. Fielding; L. Masinter (January 2005). Uniform Resource Identifier (URI): Generic Syntax. Network Working Group. doi:10.17487/RFC3986. STD 66. RFC 3986. Internet Standard 66. Obsoletes RFC 2732, 2396 and 1808. Updated by RFC 6874, 7320 and 8820. Updates RFC 1738.
  14. ^ Hansen, Tony; Hardie, Ted (June 2015). Thaler, Dave (ed.). Guidelines and Registration Procedures for URI Schemes. Internet Engineering Task Force. doi:10.17487/RFC7595. ISSN 2070-1721. BCP 35. RFC 7595. Best Current Practice. Updated by RFC 8615. Obsoletes RFC 4395.
  15. ^ Lawrence (2014).
  16. ^ T. Berners-Lee; R. Fielding; L. Masinter (August 1998). Uniform Resource Identifiers (URI): Generic Syntax. Network Working Group. doi:10.17487/RFC2396. RFC 2396. Obsolete. Obsoleted by RFC 3986. Updated by RFC 2732. Updates RFC 1808 and 1738.
  17. ^ Berners-Lee, Tim; Connolly, Daniel W. (November 1995). Hypertext Markup Language - 2.0. Network Working Group. doi:10.17487/RFC1866. RFC 1866. Historic. Obsoleted by RFC 2854.
  18. ^ a b W3C (2008).
  19. ^ W3C (2014).
  20. ^ IANA (2003).
  21. ^ Glaser, J. D. (2014-03-10). Secure Development for Mobile Apps: How to Design and Code Secure Mobile Applications with PHP and JavaScript (1st ed.). CRC Press. p. 193. ISBN 978-1-48220903-7. Retrieved 2015-10-12.
  22. ^ Schafer, Steven M. (2011). HTML, XHTML, and CSS Bible (1st ed.). John Wiley & Sons. p. 124. ISBN 978-1-11808130-3. Retrieved 2015-10-12.

References

Read other articles:

LG G4 with Metallic Gray and Ceramic White back covers. LG G4 adalah telepon cerdas Android yang dikembangkan oleh LG Electronics. Diperkenalkan pada tanggal 28 April 2015 serta dirilis pertama kali di Koréa Selatan tanggal 29 April 2015, telepon ini merupakan suksesor G3 tahun 2014. G4 merupakan pembaharuan dari G3, yang direvisi rancangan, tampilan, dan kameranya. G4 mendapatkan tinjauan positif; G4 dipuji karena kualitas tampilan, kamera, serta performa keseluruhannya, sedangkan kritik me...

 

 

Jaguarundi[1] Status konservasi Risiko Rendah (IUCN 3.1)[2] Klasifikasi ilmiah Kerajaan: Animalia Filum: Chordata Kelas: Mammalia Ordo: Carnivora Famili: Felidae Genus: Puma Spesies: P. yagouaroundi Nama binomial Puma yagouaroundi(Geoffroy Saint-Hilaire, 1803)[3] Jaguarundi range Sinonim Species synonymy Felis yagouaroundiGeoffroy, 1803 Felis unicolorThraill, 1819 Felis eyraFischer, 1814 Felis cacomitliBerlandier, 1859 Felis apacheMearns, 1901 Felis fossataM...

 

 

Göta Engineer RegimentGöta ingenjörregementeActive1878–presentCountry SwedenAllegianceSwedish Armed ForcesBranchSwedish ArmyTypeEngineerSizeRegimentPart of2nd Military District (1878–1893)2nd Army Division (1893–1901)II Army Division (1902–1927)Eastern Military Division (1928–1936)I Army Division (1937–1942)I. milo (1942–1966)Milo S (1966–2000)OPIL (2000–2004)SAFHQ (2005-)Garrison/HQEksjöMotto(s)Smålands söner – till rikets värn[note 1](Småland's ...

Air defense military installation Francis S. Gabreski Air National Guard BaseNear Westhampton Beach, New York in the United States of AmericaHH-60G Pave Hawks of the 106th Rescue Wing at Francis S. Gabreski Air National Guard Base Francis S. Gabreski ANGBShow map of New YorkFrancis S. Gabreski ANGBShow map of the United StatesFrancis S. Gabreski ANGBShow map of North AmericaFrancis S. Gabreski ANGBShow map of North AtlanticFrancis S. Gabreski ANGBShow map of EarthCoordinates40°50′21�...

 

 

Swedish zoologist and archaeologist For other people with the same name, see Sven Nilsson. Sven Nilsson Sven Nilsson (8 March 1787 – 30 November 1883) was a Swedish zoologist and archaeologist. Life and work Nilsson was director of the Naturhistoriska Riksmuseet (Sweden's natural history museum) from 1828 to 1831, professor of Natural History at Lund University from 1832 to 1856, and rector of Lund University from 1845 to 1846.[1] Nilsson was a prolific author, publishing large ...

 

 

American politician (1923–2016) Helen Delich BentleyMember of the U.S. House of Representativesfrom Maryland's 2nd districtIn officeJanuary 3, 1985 – January 3, 1995Preceded byClarence LongSucceeded byRobert EhrlichChairwoman of the Federal Maritime CommissionIn office1969–1975Nominated byRichard NixonPreceded byJohn Harllee[1]Succeeded byKarl Bakke[2][3] Personal detailsBornHelen Delich(1923-11-28)November 28, 1923Ruth, Nevada, U.S.DiedAugus...

Шалфей обыкновенный Научная классификация Домен:ЭукариотыЦарство:РастенияКлада:Цветковые растенияКлада:ЭвдикотыКлада:СуперастеридыКлада:АстеридыКлада:ЛамиидыПорядок:ЯсноткоцветныеСемейство:ЯснотковыеРод:ШалфейВид:Шалфей обыкновенный Международное научное наз...

 

 

Irish Republican armed group formed in 2012 New Irish Republican ArmyÓglaigh na hÉireannAlso known asIrish Republican ArmyLeadershipArmy CouncilFoundation2012Dates of operation2012–presentMerger ofReal IRARAADActive regionsNorthern Ireland (mainly)Republic of IrelandIdeologyIrish republicanismDissident republicanismIrish republican legitimismSocialism[1][2]Size250–300 (as of September 2012)[3]AlliesContinuity IRA[4]OpponentsBritish Army,Police S...

 

 

Caballeros de la Orden del Santo Sepulcro en la actualidad, con su hábito blanco y la cruz característica. Cruz de la Orden del Temple (templarios). Moneda de la Orden de San Juan de Jerusalén (antes del Hospital -hospitalarios- y luego de Malta), con la cruz que la identifica. Cruces de las órdenes militares españolas (desde arriba): Santiago, Alcántara, Calatrava y Montesa). Francisco Farnesio, duque de Parma, en hábito de caballero de San Jorge (Sagrada Orden Militar Constantiniana)...

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「�...

 

 

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府...

 

 

باريس-كاممبير 2016 تفاصيل السباقسلسلة77. باريس-كاممبيرمسابقاتطواف أوروبا للدراجات 2016 1.1‏كأس فرنسا لركوب الدراجات على الطريقالتاريخ3 أبريل 2016المسافات205 كمالبلد فرنسانقطة البدايةنقطة النهايةVimoutiers [الإنجليزية]‏الفرق13عدد المتسابقين في البداية95عدد المتسابقين في النه...

Earthquakes in PakistanEarthquake zones of Pakistan.(<6.0 in green, 6.0–6.9 in blue, 7.0–7.9 in orange, 8.0+ in red) Largest8.1 Mw 1945 Balochistan earthquakeDeadliest7.6 Mw 2005 Kashmir earthquake Pakistan is one of the most seismically active countries in the world, being crossed by several major faults. As a result, earthquakes in Pakistan occur often and are destructive. Geology Main article: Geology of Pakistan Pakistan geologically overlaps both the Eurasian and Indian tectonic ...

 

 

Organic halide used for fire suppression Bromotrifluoromethane Names Preferred IUPAC name Bromotri(fluoro)methane Other names Bromotrifluoromethane Trifluorobromomethane Monobromotrifluoromethane Trifluoromethyl bromide Bromofluoroform Carbon monobromide trifluoride Halon 1301 BTM Freon 13BI Freon FE 1301 R 13B1 Halon 1301 BTM Identifiers CAS Number 75-63-8 Y 3D model (JSmol) Interactive image ChemSpider 6144 Y ECHA InfoCard 100.000.807 EC Number 200-887-6 PubChem CID 6384 RTECS num...

 

 

Chemical compound MethylenedioxycathinoneClinical dataRoutes ofadministrationOral, Insufflation, RectalATC codenoneLegal statusLegal status UK: Class B Identifiers IUPAC name (±)-2-amino-1-(3,4-methylenedioxyphenyl)propan-1-one CAS Number80535-73-5 YPubChem CID57465250ChemSpider25524469 YUNIIK0XHQ9FYT3CompTox Dashboard (EPA)DTXSID801029655 Chemical and physical dataFormulaC10H11NO3Molar mass193.202 g·mol−13D model (JSmol)Interactive image SMILES NC(C(=O)C1=CC2=C(C=C1)O...

Solanum Solanum lycopersicum Klasifikasi ilmiah Kerajaan: Plantae (tanpa takson): Tracheophyta (tanpa takson): Angiospermae (tanpa takson): Eudikotil (tanpa takson): Asterid Ordo: Solanales Famili: Solanaceae Genus: Solanum L.[1] Subgenera Lihat teks Sinonim Androcera Nutt. Aquartia Jacq. Artorhiza Raf. Bassovia Aubl. Battata Hill Bosleria A.Nelson Ceranthera Raf. Cliocarpus Miers Cyphomandra Mart. ex Sendtn. Diamonon Raf. Dulcamara Moench Lycopersicon Mill. Melongena Mill. Normania ...

 

 

Polish tennis player Alicja RosolskaRosolska at the 2019 French OpenCountry (sports) PolandResidenceWarsaw, PolandBorn (1985-12-01) 1 December 1985 (age 38)WarsawHeight1.66 m (5 ft 5 in)Turned pro2003PlaysRight-handed (two-handed backhand)Prize moneyUS$ 2,141,928SinglesCareer record45–100 (31.0%)Career titles0Highest rankingNo. 636 (9 June 2003)DoublesCareer record434–514 (45.8%)Career titles9 WTA, 14 ITFHighest rankingNo. 2...

 

 

San Vittore in Ciel d'oroMosaiciStato Italia RegioneLombardia LocalitàMilano Coordinate45°27′43.92″N 9°10′31.01″E45°27′43.92″N, 9°10′31.01″E Religionecattolica TitolareSan Vittore ConsacrazioneV Secolo d.c. Stile architettonicoPaleocristiano Sito webwww.basilicasantambrogio.it/ Modifica dati su Wikidata · Manuale Il sacello o cappella di San Vittore in ciel d'oro è una cappella paleocristiana che si trova all'interno della basilica di Sant'Ambrogio a Milano. I...

خطوط يونان الصينية الجوية China Yunnan Airlines中西北 航空公司 航空公司   إياتاMU إيكاوCES رمز النداءCHINA EASTERN تاريخ الإنشاء 1992 الجنسية الصين  المطارات الرئيسية مطار كونمينغ وجيابا الدولي التحالفات سكاي تيم حجم الأسطول 64 الوجهات 88 الشركة الأم شركة طيران شرق الصين المقرات الرئيسية مقر�...

 

 

VI campionati mondiali di nuoto 1991 Competizione Campionati mondiali di nuoto Sport Nuoto Nuoto di fondo Tuffi Nuoto sincronizzato Pallanuoto Edizione 6ª Organizzatore FINA Date 3 gennaio - 13 gennaio 1991 Luogo Perth Partecipanti 1142 Nazioni 60 Impianto/i Challenge Stadium Statistiche Miglior medagliato Matt Biondi (3/1/0) Miglior nazione  Stati Uniti (17/11/6) Gare 45 Cronologia della competizione 1986 1994 Manuale La 6ª edizione dei campionati mondiali di nuoto si è te...