Students will be able to describe the purpose and operation of HTTP and HTTPS, explain the structure of a URL, and outline the role of a web browser in the client‑server model. The notes also cover the packet format used by HTTP and the basic concepts of encryption required by the Cambridge IGCSE 0478 syllabus.
A Uniform Resource Locator (URL) tells a web browser where a resource lives on the Internet.
| Component | Example |
|---|---|
| Protocol | https:// |
| Domain name | www.example.com |
| Port (optional) | :443 |
| Path | /products/item.html |
| Query string (optional) | ?id=25&ref=home |
| Fragment (optional) | #details |
Full example:
https://www.example.com:443/products/item.html?id=25#details
HTTP is the fundamental protocol that browsers and web servers use to exchange web resources (pages, images, scripts, etc.). It is a plain‑text, request‑response protocol that runs over TCP.
| Method | Typical Use |
|---|---|
| GET | Retrieve a resource (e.g., a web page or image) |
| POST | Submit data to a server (e.g., form submission) |
| PUT | Upload or replace a resource on the server |
| DELETE | Remove a resource from the server |
| HEAD | Request only the response headers, not the body |
Host, User‑Agent, AcceptContent‑Type, Content‑LengthGET /index.html HTTP/1.1 Host: www.example.com User-Agent: Mozilla/5.0 Accept: text/html
HTTP/1.1 200 OK Date: Mon, 16 Nov 2025 12:00:00 GMT Content-Type: text/html Content-Length: 1024 <!DOCTYPE html> <html> … </html>
When an HTTP message travels across the network it is carried inside a TCP segment, which in turn is encapsulated in an IP packet. The simplified packet layout is:
+-------------------+-------------------+-------------------+ | IP Header | TCP Header | HTTP Message | | (src/dst IP, …) | (src/dst ports, | (request or | | | sequence numbers) | response) | +-------------------+-------------------+-------------------+
HTTPS combines HTTP with Transport Layer Security (TLS) (formerly SSL) to provide:
HTTPS uses TCP port 443.
| Step | Action |
|---|---|
| 1 | Client → Server: ClientHello (TLS versions, cipher suites, random data) |
| 2 | Server → Client: ServerHello (chosen TLS version & cipher suite) + server’s digital certificate + server random |
| 3 | Client validates the certificate (CA signature, expiry, domain match) |
| 4 | Client → Server: encrypted Pre‑Master Secret (encrypted with the server’s public key) |
| 5 | Both sides derive identical session keys from the pre‑master secret and the two random values |
| 6 | Secure channel is established; the client now sends a normal HTTP request, which TLS encrypts before transmission |
| Type | Key(s) Used | Typical Algorithm | Use in HTTPS |
|---|---|---|---|
| Asymmetric (public‑key) | Public key & private key pair | RSA, ECC | Exchange of the pre‑master secret and verification of the server certificate |
| Symmetric | Single shared secret key | AES, ChaCha20 | Actual encryption of HTTP data after the handshake |
After the TLS handshake:
| Feature | HTTP | HTTPS |
|---|---|---|
| Port | 80 | 443 |
| Encryption | None – clear text | TLS/SSL (AES, ChaCha20, etc.) |
| Data Integrity | Vulnerable to tampering | Protected by MAC (HMAC‑SHA256, etc.) |
| Authentication | No built‑in mechanism | Server certificate (and optional client certificate) |
| Typical Use Cases | Public information where security is not critical | Login pages, e‑commerce, banking, any transmission of personal or sensitive data |
GET, POST, PUT, DELETE, HEAD.| Syllabus Unit | Must‑Cover Sub‑topics | Notes Status |
|---|---|---|
| Data Transmission |
• Packet structure (header, payload, trailer) • Packet‑switching process • Serial/parallel and duplex modes • Error‑detection basics (parity, checksum) • Symmetric & asymmetric encryption (AES vs. RSA) – used in HTTPS |
✔ Added packet diagram, encryption table, and TLS handshake description. |
| Internet & Its Uses |
• URL components • Role of DNS • HTTP/HTTPS operation • Common HTTP methods • Port numbers 80 & 443 |
✔ Fully covered and illustrated with examples. |
Use the checklist before each lesson to confirm that all required sub‑topics are present and that examples or diagrams are included where the syllabus expects them.
Create an account or Login to take a Quiz
Log in to suggest improvements to this note.
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.