URLs in 10 minutes

URL stands for uniform resource locator. A URL is a pointer to a particular resource on the Internet at a particular location. For example http://www.ibiblio.org/javafaq/course/week5/exercises.html and ftp://ftp.macfaq.com/pub/macfaq/ are both URLs.

A URL specifies the protocol used to access a server (e.g., ftp, http), the name of the server, and the location of a file on that server. A typical URL looks like http://www.ibiblio.org/javafaq/books.html. This specifies that there is a file called books.html in a directory called javafaq on the server metalab.unc.edu, and that this file can be accessed via the http protocol. The full syntax is:

protocol://hostname[:port]/path/filename#fragmentID

The protocol, also sometimes called the scheme, is generally one of these

file
a file on your local disk
ftp
an FTP server
http
a World Wide Web server
https
an HTTP server accessed over SSL
gopher
a Gopher server
mailto
an email address
news
a Usenet newsgroup
telnet
a connection to a Telnet-based service

Previous | Next | Top | Cafe au Lait

Copyright 1997, 1998, 2005 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified July 1, 2005