Question: In relation to the following properly formatted GET request: GET / HTTP/1.1 nHost: www.website.ie Connection: close (i) Explain how the server can identify the end

In relation to the following properly formatted GET request: GET / HTTP/1.1 nHost: www.website.ie Connection: close (i) Explain how the server can identify the end of the HTTP Request Header and explain why this is important. (6 marks) (ii) Identify the correct sequence of socket primitives (without arguments) invoked by the HTTP server application during the Data Exchange phase of communications when dealing with this request. (4 marks) (iii) Suggest how the following C string functions might be used in the HTTP server application to analyse this request: strstr and, sscanf. (4 marks) (iv) Explain the significance of the "Connection:" header in this request and, explain how the server should respond. (6 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
