🌍 Web (HTTP & HTTPS)

1. Definition

HTTP (HyperText Transfer Protocol) is the language used by web browsers and servers to communicate. HTTPS is the secure version, where communication is encrypted to protect privacy and data integrity.

2. Key Details

3. What Happens Under the Hood When You Visit a Website?

  1. Your browser checks its cache for the IP of the domain; if not found, it asks DNS (previous chapter).
  2. It opens a TCP connection to the server (port 80 for HTTP, 443 for HTTPS).
  3. For HTTPS, a TLS handshake occurs to establish a secure channel.
  4. The browser sends an HTTP request (e.g., GET /index.html).
  5. The server processes the request and sends back an HTTP response with a status code (200 OK, 404 Not Found, etc.) and the content.
  6. Your browser renders the page and fetches additional resources (images, CSS, JavaScript) using more requests.

4. Advantages & Disadvantages

HTTPHTTPS
Faster (no encryption overhead)Secure – data cannot be eavesdropped or tampered with
No certificate costsRequired for authentication (padlock icon)
Unsuitable for sensitive dataModern browsers mark HTTP sites as "Not Secure"

5. Use Cases in Medical Engineering

6. Special Tips / Recommendations

7. Practical Implementation (Conceptual)

To make your hospital's website secure:

  1. Purchase an SSL certificate or get a free one from Let's Encrypt.
  2. Install the certificate on your web server (the hosting provider often does this).
  3. Configure the server to listen on port 443 (HTTPS) and to redirect port 80 (HTTP) to HTTPS.
  4. Test by visiting https://yourdomain.com and checking for the padlock.