You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
At A-Level you must know not just the names of key application-layer protocols, but how they work, what messages they exchange, and when to use each one. This lesson covers the most important protocols in depth.
HTTP is the protocol used to request and deliver web pages and web resources (images, scripts, stylesheets). It operates on port 80 by default.
How it works (simplified):
Common HTTP Methods:
| Method | Purpose |
|---|---|
| GET | Retrieve a resource |
| POST | Submit data to the server (e.g. form submission) |
| PUT | Update/replace a resource |
| DELETE | Remove a resource |
Common HTTP Status Codes:
| Code | Meaning |
|---|---|
| 200 | OK — request succeeded |
| 301 | Moved Permanently — resource has a new URL |
| 404 | Not Found — resource does not exist |
| 403 | Forbidden — access denied |
| 500 | Internal Server Error |
HTTPS is HTTP with encryption provided by TLS (Transport Layer Security, the successor to SSL). It operates on port 443.
FTP is used to transfer files between a client and a server. It uses two TCP connections:
| Connection | Port | Purpose |
|---|---|---|
| Control | 21 | Sends commands (login, directory listing, file operations) |
| Data | 20 (or dynamic) | Transfers file data |
Key points:
SMTP is used to send email from a client to a mail server, or between mail servers. It operates on port 25 (or 587 for authenticated submission).
How email sending works:
| Protocol | Port | Behaviour |
|---|---|---|
| POP3 | 110 | Downloads emails to the client and (by default) deletes them from the server. Simple, good for single-device access. |
| IMAP | 143 | Emails stay on the server and are synchronised across multiple devices. Better for users who check email on phone, laptop and desktop. |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.