port below must be the port of your server. The hostname
portion must be the hostname of the machine the server is running on. For each
of these runs, you should type in 3-5 lines of input, have the echo displayed to the
screen, and disconnect from the server.
- echoclient echo://localhost:port
- echoclient echo://hostname:port
- HELLO.txt
- HELP.html
The file HELLO.txt should be accessible from the URI /HELLO.txt.
The file HELP.html should be accessible from the URI /HELP.html.
The contents of both of these previous files must be multiple lines and text. The exact
contents are up to you. Next, run the following commands on the same machine as the
server. The port portion should reflect the port number that your server has
performed a bind on.
- wget -S -O/dev/null http://localhost:port/HELLO.txt
- wget -S -O/dev/null http://localhost:port/HELP.txt
- wget -S -O/dev/null http://localhost:port/notfound.txt
telnet and have it connect to your server. Send it the
following request line
- HEAD /HELLO.txt HTTP/1.0
- ftp://www.ietf.org/rfc/rfc791.txt
- http://www.cnn.com/
- http://www.csee.wvu.edu/~tmont/assign1-Fa02.html
scriptto start capturing your runs.
If you do not know how to use script, examine its man page.
A sample run might look like this.
$ script
Script started, file is typescript
$ echoclient echo://localhost:35678
Line> info to send
info to send
Line> next line of info
next line of info
Line> quit
$ exit
Script done, file is typescript
~tmont/sub_cs453.pl file1 file2 file3 . . .
Some restrictions: