http://www.address.edu:1234/path/subdir/file.ext
| | | | |
|service | | | |
|____ host ______| | |
| | |
|port| |
| file and |
|_ resource details _|
The second part is usually the internet address of the server, indicated by the double forward slash (//). This address can also contain the (optional) port number the service listens at. The full name is then specified by a string like //www.address.edu:1234, where :1234 means Port number 1234. if you want to use the default port number you leave out the colon and the number.
The forward slash after the host and port specifications indicates the end of the address and the beginning of the specification for the file/resource to be accessed. This field varies depending on the service being accessed. A few simple examples follow: more detailed ones are given in the documents listed below.
In some cases the internet address and resource location are omitted. The common examples of this are news (for accessing Usenet news group information) and mailto (for sending mail).