The parts of a URL

advertisement
URLs – uniform resource locators
IT skills: compose URLs
IT concepts: parts of a URL, shortened URLs
This work is licensed under a Creative Commons Attribution-NoncommercialShare Alike 3.0 License.
Where does this topic fit?
• Internet concepts
– Applications
– Technology
– Implications
• Internet skills
– Application development
– Content creation
URL, uniform resource locator
http://som.csudh.edu/fac/lpress/shortbio.htm
request
page
Client
Server
Four parts of the URL
http://www.calvin.edu/academic/call/Sp13Curric.pdf
http://som.csudh.edu/fac/lpress/shortbio.htm
http://som.csudh.edu/fac/lpress/shortbio.htm
http://www.calvin.edu/academic/call/Sp13Curric.pdf
http://som.csudh.edu/fac/lpress/shortbio.htm
http://www.calvin.edu/academic/call/Sp13Curric.pdf
http://www.calvin.edu/academic/call/Sp13Curric.pdf
http://som.csudh.edu/fac/lpress/shortbio.htm
http://
http://www.calvin.edu/academic/call/Sp13Curric.pdf
http://som.csudh.edu/fac/lpress/shortbio.htm
The domain name
http://www.calvin.edu/academic/call/Sp13Curric.pdf
http://som.csudh.edu/fac/lpress/shortbio.htm
The directory
http://som.csudh.edu/fac/lpress/shortbio.htm
root
staff
* lpress
fac
jsmith
admin
...
jdoe
The file name
http://som.csudh.edu/fac/lpress/shortbio.htm
root
staff
lpress
shortbio.htm
fac
jsmith
admin
...
jdoe
You can delete the http://
www.calvin.edu
What happens if you delete the file name?
http://bpastudio.csudh.edu/fac/lpress/
The Web server will look for a file with a default name, which
is specified by the server administrator.
Traditional default names are index.htm, Index.html,
default.htm, and default.html.
URL summary
http://som.csudh.edu/fac/lpress/shortbio.htm
This request is for a Web (http) server
The server program is running on a computer with the
domain name som.csudh.edu
Look in a subdirectory called fac/lpress
If there is a file called shortbio.htm, send it back to the client
to be displayed; if not, send an error message back to the
client
Domain name = the unique name of a computer on the Internet
Questions
Without looking back, can you describe the four parts of
a URL and explain what each means?
What happens if you misspell the file name in a URL?
What happens if you misspell the domain name in a
URL?
Can you omit the domain name?
Exercise
1. Open your browser.
2. Enter the following : www.calvin.edu/~pmb4
3. Enter the following : www.calvin.edu/~pmb4/index.html
4. Enter the following : cs.calvin.edu/p/DynamicLink
5. Enter the following : cs.calvin.edu/p/DynamicLink#register
6. The # sign identifies a specific place on a webpage. The
person designing the webpage will provide this if needed.
It's generally used in menus.
7. Enter the following : cs.calvin.edu/p/DynamicLink
8. Place your mouse of the "Register" option
9. Look in the lower left hand corner
10.Click on the Register option and observe
Download