What happens behind-the-scenes if you enter a URL address to the browser address bar and hit enter?
Experience Level: Junior
Tags: HTTP protocolQuality Assurance (QA)
Answer
The browser creates a HTTP request and sends it to the server. The server then responds back and sends the web page data (HTML code).
- The URL address in HTTP requests defines which web page will be downloaded
- The method used in HTTP request is GET, because no form data are submitted (otherwise POST method would be used)
- The status code returned in response defines whether the request succeeded or whether it failed
Excercise
- Open Chrome browser and press F12 to open Chrome DevTools. Select the Network tab in DevTools.
- Enter the URL https://www.bettercoder.io to the address bar and hit enter.
- Analyze the following
- Did the request succeeded or failed? What status code was returned?
- What data was returned from the server?
- What was the size of the data returned from the server?
- How many requests were sent by the browser
Related Protocols job interview questions
What does HTTP status code 200 mean?
HTTP protocolQuality Assurance (QA) JuniorWhat does HTTP status code 404 mean?
HTTP protocolQuality Assurance (QA) JuniorWhat is a HTTP response?
HTTP protocolQuality Assurance (QA) JuniorWhat is a HTTP request an how does it look like?
HTTP protocolQuality Assurance (QA) JuniorWhat are HTTP headers good for? Where can you see HTTP headers? What HTTP headers do you know?
HTTP protocolQuality Assurance (QA) Medior