Exam-style question
Try this first
Describe how a browser obtains and displays a web page. Include the roles of the web browser and web server, and explain how SSH could be used to send a GET command to a remote port.
Model answer
What a good answer should say
- A web browser retrieves a web page and the resources needed by that page.
- The web server serves the web page in text form.
- The browser then renders the web page and its resources accordingly for the user.
- An SSH client can make a TCP connection to a remote port and send commands to that port using an application-level protocol.
Explanation
Why this works
The answer should separate the responsibilities of the server and browser. The server supplies the page as text, while the browser retrieves the page and resources and renders them.
SSH can provide a connection to a remote port for sending application-level commands such as GET for HTTP.
Common mistake
No common mistake is linked to this question yet.
