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

Browser: HTTP (application layer)→Browser: TCP (transport layer)→Web server
Click=1 of 2: a page that existsMessage=RequestProtocol=HTTPAsking for=the page at www.example.com/cats.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.

1 / 11

Press Next to follow the click. Journey 1 ends at step 6; journey 2 starts at step 7.

Step 1 of 11: 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..

Exam line: A browser sends an HTTP request for a URL. The server's HTTP response carries the page if it exists, or an error status if it doesn't. HTTP works at the application layer and passes its request down to TCP at the transport layer.
Watch out: HTTP only sets out the request and the response. Getting them there complete and in order is TCP's job, and neither of them hides the data from anyone listening.

Which idea is closest to yours?

Who does what?

A web page has just landed on your screen. Every part of it got there, and in the right order. Who pulled that off?

Which idea is closest to what you think made that happen?
How sure are you?

Exam line: HTTP is the rulebook for asking and answering. TCP is the delivery that arrives complete and in order. The page is the thing being asked for.

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?

Your turn

Say it in your own words

Describe how HTTP is used when a user opens a web page. [5 marks]

0 words · your answer stays on this page and is not sent anywhere.

Exam line: Cover the whole journey: the request for the URL, the response carrying the page or an error status, the application layer, and the hand-down to TCP.

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

1HTTP = the rules for requesting and returning web pages. It is not the page, not the address and not the delivery.
2Request out, response back. The response carries the resource if it exists, or an error status if it doesn't.
3Application layer: HTTP. Transport layer: TCP. HTTP hands the request down, and TCP gets it there complete and in order.
4No encryption in HTTP. For private data, use HTTPS.

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?
The set of rules a web browser and web server use to request and return web pages. It works at the application layer.
What is a URL?
The web address of the resource the browser is asking for, for example a particular page on a server.
What does a browser's HTTP request ask for?
The resource at a URL, such as a web page.
What does the HTTP response carry when the resource exists?
The page itself, written in HTML.
What does the HTTP response carry when the resource does not exist?
An error status instead of the page.
At which layer does HTTP work?
The application layer.
Which protocol makes sure the data arrives complete and in order?
TCP, at the transport layer. HTTP passes its request down to it.
Does HTTP encrypt the data it carries?
No. Data sent with HTTP could be read by anyone who intercepts it.
Why is HTTPS used for private data?
HTTPS encrypts the data. Plain HTTP does not.

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 posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

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.