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://metalab.unc.edu/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://metalab.unc.edu/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#section

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
gopher
a Gopher server
mailto
an email address
news
a Usenet newsgroup
telnet
a connection to a Telnet-based service
WAIS
a WAIS server
A few other protocols are occasionally encountered including rmi (remote method invocation) and https (secure http).


Previous | Next | Top
Last Modified June 15, 1998
Copyright 1997, 1998 Elliotte Rusty Harold
elharo@metalab.unc.edu