write a simple http server using serversocket class

cultural identity autobiography summary
April 11, 2021
research proposal design
April 11, 2021

write a simple http server using serversocket class

In this project, you will write a simple HTTP server (using “ServerSocket” class) that serves web browsers as its clients. This server is capable of processing only one request (like Project 1). Once your program starts, it opens a server socket with port number 9000, waiting for any client connection. After the server starts, it displays (on server’s side screen) server’s ip address, port number and the message that shows the server has started successfully.

Once the client makes a connection, the server must do the following;

1. The server displays the message that the client sent on server’s side screen.

2. The server assembles the response message using the format that was shown the lecture notes. The header lines are as follows

a. HTTP/1.1 200 OK

b. keep-Alive: timeout =10, max=100

c. Content-Type: text/html

d. Data Section follows

i. In this data section, you will simple return the string “The connection to

the Web Server was made on <Todays date and current time>.”

ii. DATA SECTION will be html format such as <HTML>… </HTML>

attachment is example you can use.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

Buy Custom Nursing Papers