Due 12:00 noon, Friday, October 12, 2001.
This is an exam. You may use the Internet, but you may not consult with any person other than Jeff Ondich about this exam. This means, among other things, that you may not send people e-mail asking questions, or solicit answers via newsgroups.
Have fun.
(5 points) The URL for my Carleton home page is http://www.mathcs.carleton.edu/faculty/jondich/index.html. I have made it possible for any web page to link directly to the "Baseball Links" section of my home page (that is, when you follow such a link, the words "Baseball Links" will appear at the top of your browser window).
(3 points) Sometimes, you may want to show an example of HTML code on a web page. For example, if you want to teach your readers how to boldface text in HTML, you will want to display the boldface tags. Show the HTML code that you would use to display the "boldface text" tags.
(5 points) Try linking to password_example.html . Test this example by entering "greater kudu" as the password, and then test it again by entering something else as the password.
View the source of password_example.html, and take a look at the password_example.php source code . Note that password_example.php actually contains the password.
Is it possible for a sneaky user to obtain the password from the web server on prism? (Assume that the file password_example.php stays on the server, but that password_example.php.html--that is, a copy of the PHP source--is deleted.)
If yes, explain the steps the sneaky user needs to take to get the password.
If no, explain how the sneaky user is thwarted.
(4 points) Carleton has administrative control over all IP addresses of the form 137.22.X.Y. How many IP addresses is that? Do you think Carleton is in danger of running out of IP addresses?
(9 points) Pretend that nobody at Carleton has ever tried to view the web site http://www.stolaf.edu/, but that you have now launched your web browser in anticipation of viewing this site for the first time. Tell the story of what happens between the time you type "http://www.stolaf.edu/" and hit the Enter key and the time the St. Olaf home page appears on your screen. Your story should include something about the process your browser goes through to obtain the IP address of www.stolaf.edu, which computer your browser contacts once the IP address is in hand, how the browser goes about requesting the St. Olaf home page, what gets handed back to the browser, and how that information gets translated into the page your browser displays for you.
The complete story is far beyond the scope of this course, so don't despair if you are left with questions you can't answer (indeed, I hope you think of new questions in the process of telling your story). Do your best, and keep it under one page.
(4 points) Who are Vinton Cerf and Tim Berners-Lee, and why are they relevant to the history of the Internet?
(6 points) Read the Daytime Protocol specification (you may ignore the section entitled "UDP Based Daytime Service").
We have a daytime server running on milner.mathcs.carleton.edu. What do you have to do to contact this server and receive the current date? Show me a transcript of your interactions with the daytime server to demonstrate that you have, in fact, contacted it.
Does the date returned by the server adhere to the requirements specified in the "Daytime Syntax" section of RFC 867?
There is a typo in the "TCP Based Daytime Service" section of RFC 867. Compare to the Quote of the Day Protocol to identify the typo, and explain how you think the typo occurred.
(2 points) Please direct me to a web site that you find amusing.
(9 points) Create an HTML form that contains a text entry box, a "Submit" button, and a popup menu containing the choices "Upper case", "Lower case", and "Reverse". When the user clicks on the Submit button, the form should invoke a PHP program. The PHP program should take the text in the text entry box and echo it reversed, all upper case, or all lower case, depending on the user's selection. Hand in printouts of both the .html file and the .php file.
Have a relaxing midterm break.