Docsity

ECE 465: Computer Network Protocols and Applications - Homework 4, Assignments of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
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, em-
ulate 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).
1

Partial preview of the text

Download ECE 465: Computer Network Protocols and Applications - Homework 4 and more Assignments Computer Systems Networking and Telecommunications in PDF only on Docsity!

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.

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, em- ulate 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).