What is the difference between HTTP and HTTPS? Explain the HTTP request-response cycle and common HTTP methods.

What is the difference between HTTP and HTTPS? Explain the HTTP request-response cycle and common HTTP methods.

From the Combined Bank Assistant Programmer (CSE) October 2026 – Written (BIBM) exam, question 7 of 21.

Answers (1)

HTTP vs HTTPS

PointHTTPHTTPS
SecurityPlain text; can be read or altered in transitEncrypted with TLS/SSL
Port80443
CertificateNot neededServer proves identity with a CA-signed certificate
IntegrityNoneTampering is detected
UseNon-sensitive contentLogins, banking, payments, everything today

HTTP request–response cycle

  1. The browser resolves the domain name to an IP address via DNS.
  2. It opens a TCP connection to the server (plus a TLS handshake for HTTPS).
  3. It sends a request: method + URL + headers (+ body), e.g. GET /index.html HTTP/1.1, Host: example.com.
  4. The server processes it and sends a response: status code + headers + body, e.g. HTTP/1.1 200 OK with the HTML.
  5. The browser renders the page; the connection is kept alive or closed. HTTP is stateless, so cookies or tokens carry the session.

Common status codes: 200 OK, 201 Created, 301 Moved, 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 500 Internal Server Error.

Common methods

  • GET — retrieve a resource (no body; safe, idempotent).
  • POST — create a resource / submit data.
  • PUT — replace a resource entirely (idempotent).
  • PATCH — partially update a resource.
  • DELETE — remove a resource.
  • HEAD (headers only) and OPTIONS (allowed methods, CORS pre-flight).

— rhs

More from this paper