Description
POSTDATA
so on and the rest of your HTML file. Submission Requirements: 1. Please submit the code for Web Server and README in the format after you tar-gzip the files. 2. Include short comments in your web server code and explain its proper usage in the README file. The readme file must explain what you have done and how to run it. The documentation does not have to be long, but does have to be very clear. Mention how you execute your program and which language you have used in that file. 3. The code should serve all the file formats in the provided document root directory (www.zip) and the client should receive these files when requested. 4. Simultaneous requests would be sent to the server. Both ways: through 2+ clients sending messages to server at the same time; or one client sending multiple requests at the same time. Your server should handle simultaneous requests. 5. Pipeline support should be present in the code if that extra credits are attempted. 6. Usage of any libraries for HTTP server is not accepted. Testing your Web server: In order to check the correctness of the server, you have to test your server with any of commercial Web browsers such as FireFox or Internet Explorer. You have to test your web server with the sample document root directory provided (www.zip). You can send a request to http://localhost:8888/index.html from your browser and check for response. The response should be ideally displayed on your web browser. Helpful Links: 1. http://www.cs.dartmouth.edu/~campbell/cs50/socketprogramming.html Socket Programming – TCP echo client and server with fork(). 2. http://www.binarytides.com/server-client-example-c-sockets-linux/ : TCP echo client and server with threads. 3. http://www.csc.villanova.edu/~mdamian/sockets/echoC.htm : Echo server-client code with threads. 4. https://www.youtube.com/watch?v=eVYsIolL2gE : Basics of socket programming.