Question: Write a simple HTTP client and a separate HTTP server application in Java. As soon as the client connects, the server will send a html
Write a simple HTTP client and a separate HTTP server application in Java. As soon as the client connects, the server will send a html or text file which is between 5 to 10K bytes in size. Close the connection once the file is transmitted.
Make sure the files are named differently on the client and server side.
You must use the Java socket class. DO NOT implement the server handling multiple requests at the same time (multi-threading).
Implement output messages that show the flow through each method (e.g. Connected to server or Receiving message from server, etc)
Show output please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
