Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a simple server program in java based on the instructions below. Here is also a link to a client program if needed: https://file.io/jLSjYD Objective:

Write a simple server program in java based on the instructions below. Here is also a link to a client program if needed: https://file.io/jLSjYD

image text in transcribed

Objective: Write a Server Program. This program will simulate a web server such as Apache or IIS using port 18888. The Server Program: The program will wait for a request for a webpage. The client will send two lines (strings) to request the webpage. The first line will be a GET request and the second line will be a blank line. For example: the first line may look like the following: GET /mypage.html HTTP/1.0 The server program will parse the string and in this case will read the "mypage.html" file from the hard drive and send the contents of the file to the client program. After this is completed the server program will continue to wait for another request from the client. (ie the server program will run forever) The file name may vary. Therefore do not assume the file name is always "mypage html" You may assume the file is always in the same subdirectory as the java file. I will use my own client program to grade your work. Please feel free to ask question in order that you will perform the required tasks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions