Web Server - Villanova University

Download Report

Transcript Web Server - Villanova University

Web Server
Submitted by:
Geetha Chittireddy
Introduction
A simple Web server which is capable of
processing multiple service requests.
It processes multiple simultaneous requests in
parallel
It includes custom made error description pages.
It implements only the requests of type GET
Implementation
This project is developed using Socket
programming .
It is programmed to handle multiple
simultaneous requests using java threads.
It implements a limited version of HTTP
1.0
This project is divided into two modules:
webserver and HttpRequest.
Implementation
cont..
Webserver:

It listens for the new requests at a specified port and
assigns them to new threads.
HTTPRequest:


It processes the request and sends the response.
A new TCP connection is created for each request
and a response is sent back over this connection.
The requests and responses that are associated
with the web server are the Http messages of
the format shown below
Implementation
HTTP Request Message:
GET /images/02.gif HTTP /1.0
Accept: */*
Referrer: http://localhost:7177/index.htm
Accept-language: en-us
Host: localhost:7177
Connection: Keep-Alive
User-agent: Mozilla/4.0
HTTP Response Message:
HTTP/1.0 200 OK
Content-Type: image/gif
Screenshot 1
Custom Error page for an empty request
Screenshot 2
Custom Error page for an empty request
Screenshot 3
Web-Browser showing the contents of a valid Java file
Screenshot 4
Command Line debugging messages
Thank You!!!
- Geetha