Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

SC 7.3: Web and email protocols

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

45 minutes

The padlock and the missing email

A student types a password on a Wi-Fi café page. A friend says: "Look for the padlock first." Later the student reads email on a phone. The laptop at home shows the same email as new.

Two ideas hide here: how a page is kept private, and how email reaches many devices.

Key words

WordWhat it meansExample
HTTPhypertext transfer protocol: the rules for asking for and sending web pages
HTTPSHTTP with encryption added, so nobody on the way can read it
Encryptionscrambling data so only the right people can read it
SMTPsimple mail transfer protocol: the rules for sending email
POPpost office protocol: it downloads email to one device
IMAPinternet message access protocol: it keeps email on the server for many devices
Status codea number in a web reply that says how it went404
Protocola set of rules computers follow to talk to each other
Networkdevices joined so they can share things

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can say what HTTP, HTTPS, SMTP, POP and IMAP are used for.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

HTTP asks, the server answers

HTTP is how a browser asks for a web page. The browser sends a request. The web server sends back a reply with a status code, such as 200 for "here it is" or 404 for "not found". Then it sends the page.

HTTP is plain text. Anyone sharing your Wi-Fi may read it.

Try it: a request and a reply

Code: python
request = "GET /timetable.html HTTP/1.1"
reply = "HTTP/1.1 200 OK"

print("Browser sends:", request)
print("Server replies:", reply)

# Change the request to /menu.html.
# Change the reply to 404 Not Found. Press Run.

HTTPS adds a lock

HTTPS is HTTP with encryption. The server also proves who it is with a certificate. The padlock in the browser shows this.

On HTTPS, a person on the same Wi-Fi sees only scrambled data. Use it for logins, shopping and banking. Most sites now use it for everything.

HTTP and HTTPS compared

FeatureHTTPHTTPS
Encrypted?NoYes
Proves the server is real?NoYes, with a certificate
Shown in the browser asNot secureA padlock
Fit for passwords and payments?NoYes

The cells students fill in are left blank in this preview.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.