Before doing this exercise you should read the Lesson #1 2nd lecture on HTTP protocol.
We will connect to a host machine via the telnet protocol which is simply a way to send text commands to a server. The server ports we will be connecing to are associated with web server so the commands we send will mimic those that a web client sends to get a web page when a certain URL is requested. The protocol that web servers and web clients use to talk to each other with is of course HTTP, so after connecting we will be issuing HTTP statements.
Lets give it a go:
http://irapp.morehead-st.edu:80/hello.html
irapp.morehead-st.edu on port 80
(recall that port 80 is the default web server port)
irapp.morehead-st.edu and the port with the port value:
80 as shown in the picture below.
GET method.
Issue the request line:GET /hello.html HTTP/1.0
HEAD
/hello.html HTTP/1.0
GET /hello.html HTTP/1.1If-Modified-Since:
Thu, 03 Aug 2001 10:10:10 GMTNext lets look at what your browser did when it retrieved this document
http://people.morehead-st.edu/fs/s.wymer/cis625/assignments/HTTP_exercise.html
you are viewing now.
GET /fs/s.wymer/cis625/HTTP_exercise.html
HTTP/1.0http://147.133.1.21:8021/hello.html i.e.
147.133.1.21 on port 8021 and
GET /hello.html HTTP/1.0
http://147.133.1.21:80/nopage.html
http://147.133.1.21:80/cgi-bin/envhtml.pl
http://216.115.108.245:80/index.html
© Copyright Scott A. Wymer, 2001. All rights reserved.