6.5
What happens when we access a web server
Examples with a Run button are editable. Underlined terms open a short definition.
WHAT HAPPENS WHEN WE ACCESS A WEB SERVER
- Browser checks for DNS entry to find the corresponding IP address of website.
- The requests are sent using small data packets that contain information content of request and IP address it is destined for.
- Browser initiates a TCP (Transfer Control Protocol) connection with the server.
- Browser sends an HTTP request to the web server. GET or POST request.
- Server on the host computer handles that request and sends back a response. It assembles a response in some format like JSON, XML and HTML.
- Server sends out an HTTP response along with the status of response.
Your last opened chapter is saved in this browser when local storage is available.
Discuss this section
Questions, corrections or a better example? Comments use GitHub Discussions.