---
title: "What happens when you open a web page"
summary: "Follow one web request from the browser to a server and back: the request, the response, status codes and the sign-in redirect, with curl."
url: "https://lab.blue-unlimited.com/en/learn/what-happens-when-you-open-a-web-page"
language: en
updated: "2026-10-25"
---

[Home](https://lab.blue-unlimited.com/en) / [Learn](https://lab.blue-unlimited.com/en/learn) / What happens when you open a web page

**Guide · Web basics**

# What happens when you open a web page

Follow one web request from the browser to a server and back: the request, the response, status codes and the sign-in redirect, with curl.

- **Reading time**: 7 min
- **Tested on**: 2026-10-25

Follow one web request from the browser to a server and back: the request, the response, status codes and the sign-in redirect, with curl.

## In plain words

A web page is a restaurant visit. You (the browser) ask the waiter (the internet) for a dish (an address). The kitchen (the server) cooks it and sends it back. If you have no table booking (a sign-in), the waiter walks you to the door first.

## Try it yourself

Watch a real request with `curl`. The `-I` option shows only the answer's headers:

```bash
curl -sI https://example.com/ | head -5
```

You should see `HTTP/2 200` and headers such as `content-type`: the server found the page and is about to send it. (A page that needs a login would answer `302` with a `location:` line instead, pointing to the sign-in page.) Now ask your own API from the Flask guide, and look at everything with `-v`:

```bash
curl -v "http://localhost:8000/upper?text=hi"
```

Lines starting with `>` are what you sent; lines starting with `<` are what came back. Also open your browser's developer tools (F12), the **Network** tab, and reload a page: every row is one request.

## A step further

Three steps: the client sends a request; the server runs code and sends a response; the client uses it.

- **Frontend**: what runs in your browser (pages, buttons).
- **Backend**: what runs on the server (routes, rules, data).

The first number of a response tells you what happened: **200** fine, **302** go somewhere else, **401** sign in first, **403** not allowed, **404** not found, **502** the server behind the proxy did not answer. Find one of each in the Network tab.

## How it works in real projects

Between your browser and a real app there are usually two more programs: a **proxy** that routes by address, and a **sign-in service** that checks who you are. Many sites work that way, which is why a request to a protected page ends in a 302 to the sign-in page.

## Tools in this guide

- [AI Workshops](https://lab.blue-unlimited.com/en/ai-workshops) (More time, Internal): AI agents and skills built around your processes and your voice, and your team trained to work with them safely.

## Not sure where to start? Tell us what's slowing you down. Let's chat.

[Let's chat](https://lab.blue-unlimited.com/en/contact?cta=chat&item=what-happens-when-you-open-a-web-page)
