ToC ~ Up ~ Prev ~ Next ~ Index |
Introduction to HTML Last Update: 5 January 1998 |
Files can be referenced via FTP using the URL convention.
The general form is:
ftp://internet.address.edu/file/path/file.txt
This form makes an anonymous FTP request for the indicated
file from the indicated machine.
If you specify a directory instead of a file (by requesting
a URL such as ftp://internet.address.edu/file/path/
,
most browsers will give you a list of the directory contents and
allow you to select files, or other directories.
NOTE -- If a URL points to a directory it *must* end with the slash character. This tells the URL that the desired target is a directory (i.e. the directory path/) and not a file (i.e. the file path).
You can access non-anonymous ftp resources by specifying, within the URL, both the username and password of the account you wish to access. ( NOTE -- This is not secure -- see the following warning). For example:
ftp://joe_bozo:bl123@internet.address.edu/path/file.gz
allows you to access files on machine internet.address.edu belonging to user joe_bozo (password bl123). Note that you can omit the password if you wish -- most browser's will then attempt the connection, but will prompt the user to type a password. Indeed, it is best to omit the password -- otherwise everybody who accessss this document will be able to read the HTML and know joe_bozo's password!
ToC ~ Up ~ Prev ~ Next ~ Index |
Introduction to HTML © 1994-1998 by Ian Graham Last Update: 5 January 1998 |