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 might 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 still answer? And if it answers, 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 rulebook for how the asking, and the answering, is set out. It works at the application layer.
Press Next to follow the click. Journey 1 ends at step 6; journey 2 starts at step 7.
Predict, then check
You're logging in to a website that uses plain HTTP. Someone is secretly listening in on the connection.
Your login form goes out 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 question and an answer. Follow one click out and back, then see what happens when the page isn't there.
What you need to know
- HTTP stands for Hypertext Transfer Protocol. A protocol is a set of rules, not a thing you can see.
Have a goYour friend announces, with total confidence: "HTTP is the website I'm looking at." What's your one-line correction?
HTTP isn't the website. It's the set of rules for transferring it.
The P stands for Protocol, a set of rules. The page is what gets transferred; mixing the two up is the classic slip.
- Its job: transferring web pages and other web resources between a web server and a client, such as your browser.
- Your browser kicks things off by sending an HTTP request to the web server.
- Each request names the resource it wants by its URL, the web address.
- Back comes an HTTP response carrying the resource, for example the page's HTML.
Have a goPick a direction: does the HTTP response travel browser to server, or server to browser?
Server to browser.
The request goes out from your browser; the response is the server's reply coming back. Swapping the two names is an easy way to drop marks.
- No such resource? The server still replies, with a status message such as an error instead.
- Where does HTTP sit? At the application layer of the four-layer TCP/IP model.
- Underneath, HTTP hands its request down to TCP at the transport layer, so request and response arrive complete and in order.
Have a goImagine a page turns up with chunks missing and in the wrong order. Whose job would have gone wrong here: HTTP's or TCP's?
TCP's.
HTTP only sets the rules for the request and the response. TCP at the transport layer is the protocol that makes sure they arrive complete and in order.
- Plain HTTP doesn't encrypt anything, so anyone who intercepts the data could read it.
- That's why HTTPS, the secure version that encrypts the data, is used wherever data must be kept private.
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: HTTP's job, TCP's job, or something plain HTTP can't 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's 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 every analogy, 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 30 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.