LearnThatStack Ace your next interview
Networking for Developers · question
Question 6 of 51

What is the difference between HTTP and HTTPS, and why does it matter?

beginner
← All Networking for Developers questions
Re-explain

HTTPS is plain HTTP wrapped inside an encrypted TLS connection. HTTP sends everything as readable text over the wire. HTTPS scrambles it, so anyone in between sees only noise.

The TLS layer does three jobs. It hides the content from eavesdroppers. It proves you reached the real server, not an impostor. It detects any tampering with the bytes in transit.

This matters because networks are full of untrusted hops, such as coffee-shop WiFi, ISPs and proxies. Without HTTPS, passwords and cookies travel in the clear. Browsers now mark plain HTTP pages as not secure, so HTTPS is the default. That is why login pages and payment forms always use it.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for Networking for Developers One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

What you can say

  1. HTTPS is plain HTTP sent inside an encrypted TLS connection. The requests and responses are the same, but nobody along the path can read them.
  2. With plain HTTP, everything crosses the wire as readable text, so any hop in between, like public WiFi, your ISP or a proxy, can see passwords and cookies.
  3. TLS does three jobs: it hides the content, it proves you reached the real server and not an impostor, and it detects any change to the bytes in transit.
  4. That's why browsers now mark plain HTTP pages as not secure, and why login and payment pages always use HTTPS. It's the default now.
  5. One limit, though. HTTPS only protects data while it travels. A phishing site can get a valid certificate too, so the padlock proves which domain you reached, not that it's honest.

Weak answers to avoid

  • Says HTTPS just means encrypted Encryption is one of three jobs. Without checking the server's identity you could encrypt straight to an impostor. Name authentication and tamper detection too.
  • Treats HTTPS as a different protocol from HTTP Methods, headers and status codes are identical. HTTPS is the same HTTP carried inside TLS. Getting that layering wrong is a red flag.
  • Thinks the padlock means the site is safe HTTPS proves the domain and protects data in transit. It says nothing about whether the site is honest or keeps your data safe once it arrives.
  • Says HTTPS is only needed on login pages Cookies ride on every request, and an attacker can alter any plain HTTP page in transit, scripts included. HTTPS everywhere is the default for that reason.
Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Networking for Developers cheatsheet.

← Back to all Networking for Developers questions
Pro · $10/mo

44 of 51 Networking for Developers answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime