Describe the purpose and operation of HTTP and HTTPS

The Internet and Its Uses

HTTP – The Language of the Web

Imagine you want to ask a friend for a book. You write a letter (the request) and drop it in the mailbox. Your friend receives it, reads it, and writes back a reply (the response). HTTP works the same way on the web.

  • Client (your browser) sends a request to a server.
  • The server processes the request and sends back a response containing the requested data (e.g., a webpage).
  • Both the request and response are made of text headers and body content (HTML, images, etc.).
  • HTTP is stateless – each request is independent; the server doesn’t remember past requests unless you add extra mechanisms.

HTTPS – Secure HTTP

Now, suppose you want to send that same letter but you don’t want anyone else to read it. You put it in a sealed envelope and lock it with a key. HTTPS does exactly that: it encrypts the data so only the intended recipient can read it.

  1. The client and server perform a handshake to agree on a shared secret key.
  2. All data sent over the connection is encrypted using that key.
  3. Even if someone intercepts the traffic, they only see scrambled information.
Feature HTTP HTTPS
Encryption None – data is plain text TLS/SSL – data is encrypted
Port 80 (default) 443 (default)
Security Vulnerable to eavesdropping Secure against eavesdropping
Exam Tip: When answering questions about HTTP/HTTPS, remember to mention the handshake and encryption steps for HTTPS, and note that HTTP is stateless and unencrypted. Use the table above as a quick reference.
Quick Quiz: Which protocol uses port 443? 🤔

Revision

Log in to practice.

1 views 0 suggestions