Question: The following string representing an incorrectly formatted HTTP / 1 . 1 Request message for the default homepage is sent to the TU Dublin webserver:

The following string representing an incorrectly formatted HTTP/1.1 Request
message for the default homepage is sent to the TU Dublin webserver:
GET /HTTP/1.1??r??
Coection-closed??r?
(i) There are five errors associated with this string; four of which relate to syntax
and one relating to an omitted compulsory data element. Rewrite the HTTP
Request in its proper form.
(5 marks)
(ii) Assume the properly formatted HTTP GET Request from (i) above is sent to a
HTTP server, explain the origins of the problem associated with the use of the
following implementation of the recv() primitive becoming 'stuck' inside the
while() loop and, explain how this problem might usefully be addressed.
(iii) Given that the HTTP Response message will likely include a Body section and
consequently the solution to the problem associated with ) primitive
outlined in (ii) above will not work efficiently, identify the appropriate HTTP
Header that should be returned to assist the client in addressing this problem
and, outline a high-level solution to the problem that uses this Header value
(code not required).
(10 marks)
 The following string representing an incorrectly formatted HTTP/1.1 Request message for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!