Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 Request
message for the default homepage is sent to the TU Dublin webserver:
GET HTTP
ectionclose
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.
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 highlevel solution to the problem that uses this Header value
code not required
marks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started