Difference b/w HTTP & HTTPS

Definition of HTTP

HTTP (Hypertext Transfer Protocol) is a way of data communication for the web. HTTP defines how the internet works while delivering the web pages. HTTP is purely TCP/IP based protocol and things like text, audio, videos, images can be transmitted through it.

The cycle of HTTP works on request and response. Here the client requests a web page and got a response from server. As an example, if you browse to webshree.com, this means you are requesting a web page from server, and the server will deliver you response.

HTTP – A Stateless Protocol

HTTP is a stateless protocol which means every single transaction you made through HTTP is independent in nature. However, this can be delivered through using HTTP cookies, server side sessions, variables, URL rewriting.

When a client wants to browse a website first thing that happens is that request is sent to the server known as HTTP message. Thereafter, the server will prepare a response and send it back. The message will be different depending on its message response and request.

Definition of HTTPS

HTTPS (Hypertext Transfer Protocol Secure) is nothing but the HTTP working in tandem with SSL (Secure Socket Layer) that is the “S” in HTTPS.

SSL is secure and takes care of ensuring the security while data goes over the internet. The alternative names given to HTTPS are HTTP over TLS, HTTP over SSL and HTTP secure.

HTTPS is used for delivering or communicating with web sites which have sensitive data. This made man-in-the-middle attack increasingly difficult as the data send is no longer in plain text.