Web Server - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Web Server

Description:

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: ... – PowerPoint PPT presentation

Number of Views:37
Avg rating:3.0/5.0
Slides: 11
Provided by: kpe74
Category:
Tags: java | server | threads | web

less

Transcript and Presenter's Notes

Title: Web Server


1
Web Server
  • Submitted by
  • Geetha Chittireddy

2
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

3
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.

4
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

5
Implementation
  • HTTP Request Message
  • GET /images/02.gif HTTP /1.0
  • Accept /
  • Referrer http//localhost7177/index.htm
  • Accept-language en-us
  • Host localhost7177
  • Connection Keep-Alive
  • User-agent Mozilla/4.0
  • HTTP Response Message
  • HTTP/1.0 200 OK
  • Content-Type image/gif

6
Screenshot 1
Custom Error page for an empty request
7
Screenshot 2
Custom Error page for an empty request
8
Screenshot 3
Web-Browser showing the contents of a valid Java
file
9
Screenshot 4
Command Line debugging messages
10
Thank You!!!
  • - Geetha
Write a Comment
User Comments (0)
About PowerShow.com