EIW Exercises: Internet Application Protocols


NOTE: You can use the Windows (DOS) telnet program for these, although you can also get and install securecrt from : http://www.vandyke.com/products/securecrt/.


1. Use telnet to converse with a web server:

You need to talk to a web server using only the telnet program. You will need to be able to compose an HTTP query in order to present the server with a valid request. A quick example is described below, followed by a number of specific tasks you must complete.

Now that you are an expert - you need to do the following (and make sure the TA knows you've done these):

  1. Find out what an error response looks like by asking for a resource that does not exist. (A "resource" is what is specified by the URI)

  2. Find out what kind of web server you are talking to by looking for the response header "Server:". Write down the complete Server: response header.

  3. Find out how large the resource named "/" is on the server running on host www.yahoo.com. This size of the content of a resource is provided by the server as a header (you have to figure out which one).


2. Use telnet to send a phony email message to us.

Your job is to send email to eiw@cs.rpi.edu from fox@fbi.org.
I suggest that first you play around and make sure you know how to converse with an SMTP server.

  • Establish a TCP connection to an SMTP server (mail.rpi.edu port 25) using the telnet program.

  • Send an email message to your email address, then check your mail and see what it looks like. Check the message headers ! (Can you be traced?)

  • To receive credit for this exercise you must now send mail (using telnet) to eiw@cs.rpi.edu from fox@xfiles.fbi.org (or any obviously fake name).

  • Put your name and email address in the message content (so you get credit for the exercise!). I suggest that you send the mail to both eiw@cs.rpi.edu and to your email address so you can verify that the message went through.

    To specify multiple recipients you must enter multiple RCPT TO: commands in the SMTP conversation - one right after the other.

IMPORTANT: For part 2 of this exercise your grade is recorded when we look at email sent to eiw@cs.rpi.edu, you do not need to show Dave or the TA your telnet session. All emails must be received by the next class meeting to get credit.