Web Server Design Assignment #1: Basic Operations Due: 02/03/2010 Old Dominion University

advertisement
Web Server Design
Assignment #1: Basic Operations
Due: 02/03/2010
Old Dominion University
Department of Computer Science
CS 495/595 Spring 2010
Martin Klein <mklein@cs.odu.edu>
Grading
• To be done by an automated program that will test
most (all?) combinations
– assignment is listed under the day it is to be demoed in
class
– each group will give a 3-4 minute status report the
week before an assignment is due!
• If you have a question:
– email the class list
– mimic the behavior of a well known Apache server
(e.g., www.cs.odu.edu)
Methods to Support
•
•
•
•
GET
HEAD
OPTIONS
TRACE
Status Codes to Support
•
•
•
•
•
•
•
200 - OK
400 - Bad Request
403 - Forbidden
404 - Not Found
500 - Internal Server Error
501 - Not Implemented
505 - HTTP Version Not Supported
Request Headers
• Connection: close
• Host: [IP hostname]
Response Headers
•
•
•
•
•
•
•
Date
Server
Last-Modified
Content-Length
Content-Type
Connection: close
Allow
MIME Types
•
•
•
•
•
•
•
•
•
•
text/plain
text/html
text/xml
image/png
image/jpeg
image/gif
application/pdf
application/vnd.ms-powerpoint
application/vnd.ms-word
message/http
Keep in mind:
Status report next week!
START
NOW!!!
Download