Difference between HTTP and HTTPS
HTTP (Hypertext Transfer Protocol) : -
Definition: - HTTP is a protocol used for communication on the World Wide Web. It is an application layer protocol that facilitates the transfer of hypertext, which can contain text, images, videos, links, and other multimedia content.
Key Characteristics: Stateless: Each request from a client to a server is independent and does not rely on past requests. Connectionless: After a request is made, the connection between the client and server is closed.
Operation: A client (e.g., a web browser) sends an HTTP request to a server to request a specific resource (e.g., a web page). The server processes the request and sends back an HTTP response containing the requested resource.
Security: HTTP does not provide data encryption during transmission, making it susceptible to eavesdropping and man-in-the-middle attacks. It is not suitable for transmitting sensitive information such as login credentials.
Example URL: http://www.example.com
HTTPS (Hypertext Transfer Protocol Secure):
Definition: HTTPS is a secure version of HTTP that uses encryption to protect the data exchanged between the client and server.
Key Characteristics: Secured Communication: Data transmitted between the client and server is encrypted using Transport Layer Security (TLS) or its predecessor, Secure Sockets Layer (SSL).
Port: HTTPS typically uses port 443 for communication.
Operation: The process is similar to HTTP, but with an added layer of security. Before data is exchanged, a secure connection (identified by "https://" in the URL) is established through a process called the SSL/TLS handshake.
Security: HTTPS ensures the confidentiality and integrity of data during transmission. It protects against eavesdropping, tampering, and man-in-the-middle attacks.
Example URL: https://www.example.com
Subscribe to my newsletter
Read articles from Himanshu Pandey directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Himanshu Pandey
Himanshu Pandey
Engineer