Answered step by step
Verified Expert Solution
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
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 tasksStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started