http://info.cern.ch/hypertext/WWW/Addressing/URL/Overview.html http://www.utirc.utoronto.ca:3232/home.html http://www.utirc.utoronto.ca:3232/
What does this mean? The first part http: means that the documents are served by an http server. The double slash (//) means that the next part is the name of the server. This can have two parts, the internet address of the server (essential) and the port number the server listens at (optional). In the first example info.cern.ch the port number is not specified, so the browser assumes the default number for http servers (Port 80). In the second case URL tells the browser that the http server is at port 3232. The port is specified after the server name, separated by a colon.
The final element is the file or resource being requested: this is separated from the address+port number pair by a slash (/). The resource is specified by a path relative to to the root directory of the server. Thus the URL overview document at cern is found in the subdirectory .../URL/Overview.html with respect to the HTTP server root.
A file or resource specification beginning with
/cgi-bin/ is special: the cgi-bin directory
is treated specially: this directory is
reserved for programs/scripts that can be executed by the
server. This is discussed in section 5.1.1 below.
If the file name is left out the server tries to send you a default directory file. Usually this is 'index.html', but this can be modified (or turned off) by the server configuration files. Also, If there is no specified file the trailing slash can be omitted.
The general form is as follows. We
http://some.site.edu/cgi-bin/foo?arg1+arg2+arg3What does this mean? There are two things to note:
cgi-bin directory is a special location
known to the server, containing executable programs or scripts.
The reason is obvious: you have to pass argument to something
that can act on those arguments, implying a program or script.
The cgi-bin directory contains programs/scripts that
interface with the WWW - a URL can access and pass argument to
programs/scripts in this directory, and these programs/scripts can
in turn act on the arguments and return information, documents,
etc. to the browser.
foo is sent three
arguments, arg1, arg and
arg3.