Develop a web server that handles one http request

Assignment Help Web Project
Reference no: EM131812779

Web Server Lab

You will develop a web server that handles one HTTP request at a time. Your web server should accept and parse the HTTP request, get the requested file from the server's file system, create an HTTP response message consisting of the requested file preceded by header lines, and then send the response directly to the client. If the requested file is not present in the server, the server should send an HTTP "404 Not Found" message back to the client.

Running the Server
Put an HTML file (e.g., HelloWorld.html) in the same directory that the server is in. Run the server program. Determine the IP address of the host that is running the server (e.g., 128.238.251.26). From another host, open a browser and provide the corresponding URL

‘HelloWorld.html' is the name of the file you placed in the server directory. Note also the use of the port number after the colon. You need to replace this port number with whatever port you have used in the server code. In the above example, we have used the port number 6789. The browser should then display the contents of HelloWorld.html. If you omit ":6789", the browser will assume port 80 and you will get the web page from the server only if your server is listening at port 80.

Then try to get a file that is not present at the server. You should get a "404 Not Found" message.

Reference no: EM131812779

Questions Cloud

Server application that accepts connections : A client application that takes user input and for each input value creates a message object, generates hash-codes for it, then connects and sends object
Journal entries to record these transactions : During October, Beidleman Inc. transferred $69,200 from Work in Process to Finished Goods and recorded a Cost of Goods Sold of $74,550.
Discuss the benifit of drug to treat urinary tract infection : Discuss the advantage and disadvantage of one drug to treat urinary tract infections.
Compute the cost to produce one helmet : Ohno Company specializes in manufacturing a unique model of bicycle helmet. The model is well accepted by consumers, and the company
Develop a web server that handles one http request : Develop a web server that handles one HTTP request at a time. Your web server should accept and parse the HTTP request, get the requested file from the servers
Review problem on lottery ticket : Five thousand lottery tickets are sold for $1 each. One ticket will win $1,000, two tickets will win $500 each, and ten tickets will win $100 each.
Define the domain biocultural ecology : In your own words discuss the empirical framework of the Purnell Model and what are the purposes of this model.
Weighted-average method in its process costing : Ok Corporation uses the weighted-average method in its process costing. The following data concern the company's Assembly Department for the month of June
Net gain from the purchase of a randomly selected ticket : Seven thousand lottery tickets are sold for $5 each. One ticket will win $2,000, two tickets will win $750 each, and five tickets will win $100 each.

Reviews

Write a Review

Web Project Questions & Answers

  Create a web application test plan for web-based business

Create a Web application test plan based on a real-life scenario involving a Web-based business which processes credit card information

  Describe the steps you have taken to maintain and redesign

Describe the steps you have taken to maintain and redesign your site(basic website beginner). How is the process that you followed similar to or different from how sites are maintained and redesigned in the professional environment

  Describe similarities and differences between xml and html

Describe the similarities and differences between XML and HTML. What are the benefits of each? Why would you use one over the other.

  Write a well researched academic capstone project report

Write a well researched academic Capstone Project Report

  Define a preliminary scope statement for a project

Define a preliminary scope statement for a project to build a simple interactive web site for this class. The web site should be accessible only by current students and instructors.

  The tradeoffs the life of development phase of the project

Initial Plan budget. (Using math for decision-making)You are a manager with budget authority for a new IT project that is being developed for your department. The project is being developed internally by the company IT staff

  Create two html pages that will be added to your website

Create two HTML pages that will be added to your website. Name them unit3a.html and unit3b.html - Create a CSS file by using a text editor. You may use Notepad

  Website migration project

Website Migration Project

  Database driven web application

The project is to design, create, evaluate and present/defend a database driven PHP web site, to demonstrate what you have learnt from the module topics.

  Discussion on future of web

Create a 1 or 2 screen prediction on what effects you think the Website, and in particular, the enormous amount of documents accumulating on the Web will play in your life, and your children's life in future.

  Assess reliability of data gathered via paid internet users

Assess the reliability of data gathered via paid Internet users. Describe and assess the evaluation method being used by the testing company, i.e., nonvisual and verbal recording of browser activities and tester's vocal comments

  How the company uses the site to communicate

How the company uses the site to communicate with its customers. Your assignment is to write a one-page summary evaluating the company website, and be sure to address the following:

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd