|
|
|||||||||||
|
|
Navigation | URL Addresses |
|
|
|
|||||||
URL Addresses
A Uniform Resource Locator or URL address is a wedding of the information in
the IP address for a machine and the information in its local file structure.
Thus a URL address gives the
location of a file,
not with respect to a single computer, but with respect
to the entire Internet!
What Are URLs: An Analogy
Now imagine that someone from another country wants to locate you. The local address within the building is no longer sufficient because it doesn't specify how to find your building. At the very least, it is necessary to specify additional information giving the country, city, street, and so on of the building in which you reside.
This is now analogous to the
information that a URL address provides: a URL address gives a unique address
for a file with respect to anywhere on the Internet, just as your complete
residential address gives a unique way to locate you from anywhere
in the world. Thus,
URL addresses allow the computers of the Internet to behave at a
certain level as if they were a single computer.
What do URL Addresses Look Like?
http://csep10.phys.utk.edu/webcourse/browser/textfile.html
This is a functioning URL address, and it is also
a hypertext link (notice the color and
the underline, and that if you hold the mouse over the link the pointer turns
into a pointing hand, all of which indicate that this is a link).
Therefore, you can go to it by clicking on it. Try it (but
then come back here, by using the Back button on the browser).
URL's Can Address More Interesting Things
An image at http://www.techcorps.org.org/webcourse/browser/usa2.gif A sound file at http://www.techcorps.org/webcourse/browser/hasta_la_vista.au A movie file at http://www.techcorps.org/webcourse/browser/goldgate.mpg Therefore, we see that a URL address is a very powerful thing, allowing us to address many different kinds of files.
Comments: Case Sensitivity
You can come to grief over this in the following way: Suppose you have a GIF file named myfile.GIF on your Windows computer and you access it locally from your browser using a Web link of the form
This will generally work on your Windows computer because it views myfile.gif and myfile.GIF as the same files. Confident that everything is working as it should, you now transfer the file containing this link and the GIF file to a Unix Web server and try to access this link over the Web. To your dismay, you (and anyone else on the Web trying to access your file) will now get an error message that the file myfile.gif is not found on this Web server. Why? Unix is case sensitive, therefore (unlike the Windows computer that you used to develop the files), the server views myfile.GIF as being a different file from myfile.gif and croaks. The only cure in this case is to change either the filename in the link or the name of the GIF file so that the names are case compatible. Comments: Blank Spaces
The common ways that Unix systems name such files without employing
blank spaces is to use upper case letters to start words (with no blanks between
words), or to use underlines
or dashes to indicate where blank spaces would be. For example,
would all be acceptable Unix filenames.
Words to the Wise
Therefore, if you are going to be developing material for the Web, we suggest strongly that you immediately get into the habit of (1) assuming case sensitivity in all your filenames, and (2) not using blank spaces in any filenames.
|
|||||||||||
|
|
|||||||||||