Answered step by step
Verified Expert Solution
Link Copied!

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/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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions