Provide the sequence for working of a dynamic web page.
(A) Calls an application program in reponse to the request
(B) The program excecutes and produces the output
(C) HTTP Request
(D) HTTP Response
Provide the sequence for working of a dynamic web page.
(A) Calls an application program in reponse to the request
(B) The program excecutes and produces the output
(C) HTTP Request
(D) HTTP Response
Solution
A dynamic page starts when the browser sends an HTTP request. The web server then calls an application program to handle it. The program runs and produces the output (usually HTML), and the server sends that output back to the browser as the HTTP response.
(C) HTTP Request
(A) Calls an application program in response to the request
(B) The program executes and produces the output
(D) HTTP Response
Options 1 and 2: the response (D) cannot come before the request (C).
Option 4: the response (D) cannot be sent before the program has been called and has produced output.
A static page skips steps (A) and (B), because the server returns a stored file directly.
Related questions:
2025: 30 May Shift 2
2025: 22 May Shift 1
2025: 15 May Shift 2
2025: 3 June Shift 2