CS 560 Project #4 Example

I am sure that you all know how to retrieve a web page from a web server using a browser. For example, I can get the main web page on cesium using the following URL: http://cesium.cs.jmu.edu

I can also get the same web page using the TELNET command. First, I log into helium. Then I connect to the web server running on cesium:

helium% telnet cesium.cs.jmu.edu 80
Trying 134.126.20.227...
Connected to cesium.cs.jmu.edu.
Escape character is '^]'.

I am now connected and the web server on cesium is waiting for my request. I enter it followed by a blank line:

GET / HTTP/1.0

The web server replies:

HTTP/1.1 200 OK
Date: Mon, 22 Aug 2005 15:20:02 GMT
Server: Apache/1.3.31 (Debian GNU/Linux) PHP/4.3.9-1
Connection: close
Content-Type: text/html; charset=iso-8859-1

<html>
<head>
<title>JMU.CS.Sunrise</title>
<link rel=stylesheet type="text/css" href="styles/sunrise.css" title="Sunrise">
</head>
<body>




<div center>
<table class="block" width=100% cellspacing=0 cellpadding=0 border=0>
<tr>
<td class="block" colspan=6>
<h1 class="title">JMU.CS.Sunrise</h2>
</td>
<tr>
<td class="block"><a href="/sunrise/index.shtml" class="block">Index</td></a>
<td class="block"><a href="/sunrise/news.shtml" class="block">News</a></td>
<td class="block"><a href="/sunrise/userpages.shtml" class="block">User Pages</a></td>
<td class="block"><a href="/sunrise/projects.shtml" class="block">Projects</a></td>
<td class="block"><a href="/sunrise/resources.shtml" class="block">Resources</a></td>
<td class="block"><a href="/sunrise/links.shtml" class="block">Links</a></td>
</tr>
</table>
</div>

<p class="para">
Sunrise is a cluster of unix servers. Unix controls access to the servers resources, manages files, prevents users from interfering
with each others work, and provides a stable environment in which users can develop and use applications.

<p class="para">
Currently, Sunrise consists of 6 machines.

<ul style="para">
<li>sys11 - Faculty workstation running linux
<li>sys12 - Student workstation running linux (also runs the sunrise web server)
<li>sys14 - Faculty workstation running linux
<li>sys23 - Student workstation running linux
<li>sys16 - file server
<li>tiger - mail and DNS server
</ul>
<hr>
<p class="footer">
publisher:
<a href="mailto:sysop@cs.jmu.edu" class="footer">Sunrise Admin</a>
<br>

last modified:
Friday, 19-Apr-2002 22:03:31 EDT
</p>


</body>
</html>