The journey of a request : from your computer to the server and back.

Every time you open a website or click a button, a request travels a long path before you see the result. In this post we follow that journey step by step, in simple words, so you understand what really happens between hitting Enter and seeing the page.

personal image

Hossam Mohamed

April 25, 2026

About What is a request?

A request is just a message your browser (or app) sends to a server asking for something like a page, an image, or some data. The server reads the message, does its work, and sends back a response. The interesting part is everything that happens in between, and it is more than most people think.

Journey of an HTTP request from browser to server

1- Before the request even leaves your computer

A lot of work happens inside your own machine before a single byte goes out to the internet.

What your browser does first:

How fetch / update flows look

fetch and update request flow

2- Reaching the server over the network

Now that your computer knows the IP address, it has to actually open a safe path to the server and send the message.

Step by step on the wire:

3- What the server does with your request

On the other side, the request usually does not go straight to your code. It passes through a few layers first.

Inside the server:

4- The response comes back to your browser

Getting the bytes back is only half the story. Your browser still has to turn them into something you can see and use.

What happens after the bytes arrive:

Newsletter

Leave message for me to get updates about my latest projects. or if you have any suggestion i will be happy to hear .