GCSE · Computer Science · AQA · Spec 8525
HTTP
Click a link and your browser has a lightning-fast chat with a faraway computer: one asks, one answers. What do they say, and who else could be listening?
Computer Science · Networks
One click, two journeys
Step through what happens when you click a link to a page that exists, then a link to a page that doesn't.
Before you step through: on click 2 the page doesn't exist. Will the server stay silent, or will it still answer? And what will the answer carry?
Message: Click 1: www.example.com/cats.html — Click 2: www.example.com/dragons.html
Output
Step 1: You click. Your browser writes an HTTP request: a message asking the web server for the page at that URL (the web address of the thing you want). HTTP is the set of rules for how that asking, and the answering, is worded. It works at the application layer.
Press Next to follow the click. Run 1 ends at step 6; run 2 starts at step 7.
Predict, then check
You are logging in to a website that uses plain HTTP. Someone is secretly listening in on the connection.
Your login form is sent in a plain HTTP request. Can the person listening in read your username and password?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Every page you open is a request and an answer. Follow one click out and back, then watch what happens when the page doesn't exist.
What you need to know
- HTTP is the set of rules a web browser and a web server use to ask for and send web pages.
- The browser sends an HTTP request for a URL. The server sends back an HTTP response: the page if it exists, or an error status if it doesn't.
- HTTP works at the application layer. It passes its request down to TCP at the transport layer, which makes sure the data arrives complete and in order.
- HTTP does not encrypt, so data sent with it could be read if intercepted. HTTPS, which encrypts, is used for private data.
The big picture
HTTP is the set of rules a web browser and a web server follow to ask for and send web pages. The browser sends a request for a URL, the server sends back a response carrying the page or an error status, and the request is handed down to TCP, which delivers it complete and in order. HTTP does not encrypt anything, which is why HTTPS is used for private data.
Key points
Worked example
Problem
Opening www.example.com/maps.html involves four separate jobs. For each one, decide whether it is HTTP's job, TCP's job, or something plain HTTP cannot do: (1) asking the server for maps.html; (2) making sure the request arrives complete and in order; (3) answering with an error status when maps.html isn't there; (4) scrambling a password so a listener can't read it.
⚠ Watch out
Giving HTTP every networking job: saying HTTP makes sure data arrives complete and in order (that's TCP), or that HTTP keeps data private (plain HTTP doesn't encrypt anything), or that HTTP is the web page or the address itself (it is the set of rules for requesting and returning pages).
Memory hook
HTTP is the conversation, TCP is the courier, and plain HTTP is a postcard: it arrives, but anyone who handles it can read it. (Like all analogies, it stops there: the courier doesn't write the message, and a postcard is paper, not data.)
Check yourself
In one breath: what does the browser send, what comes back if the page exists, and what if it doesn't? Which protocol carries the request once HTTP hands it down?
Flashcards
(9)What is HTTP?
What is a URL?
What does a browser's HTTP request ask for?
What does the HTTP response carry when the resource exists?
What does the HTTP response carry when the resource does not exist?
At which layer does HTTP work?
Which protocol makes sure the data arrives complete and in order?
Does HTTP encrypt the data it carries?
Why is HTTPS used for private data?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 2 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.