Homework 4 (Due: February 20)

[PDF]

ECE 465:Computer Network Protocols and Applications
Prof. B.-P. Paris
Homework 4
Due: February 20, 2007

Reading
Chapter 2 in Kurose and Ross through section 2.5
Chapter 2 Review Questions
  1. Question 8
  2. Question 9
Chapter 2 Problems
  1. Problem 6
  2. Problem 8
Experiments
  1. Connect via telnet to port 80 of the server thalia.spec.gmu.edu. Construct a HTTP request that uses the POST method to send form input to the URL /~pparis/cgi-bin/test.cgi. Specifically, emulate the request that a browser would send to indicate that the form field “name” has been set to “Bobo.” Turn in the request that you sent together with any explanations you deem necessary.

    Hint: Read RFC 2616 (HTTP/1.1) to learn how to send a request with a message body. Sections 9.5, as well as 4.3-4.4 should be most relevant.

  2. Connect via telnet to port 80 of the server. Construct an HTTP request that allows you to retrieve the password protected file /~pparis/secret/secret.html. The username is “Aladdin” and the password is “open sesame” for that file. Turn in the request that you sent together with any explanations you deem necessary.

    Hint: Read section 11 of RFC 2068 (even though RFC 2068 has been obsoleted by RFC 2616, it is easier to read the older RFC since the material on authentication has been delegated to yet another RFC in 2616).