by BehindJava

What is the difference between HTTP and HTTPS protocol

Home » springboot » What is the difference between HTTP and HTTPS protocol

In this tutorial we are going to learn about HTTP and HTTPS protocols.

HTTP Protocol

HTTP stands for Hypertext transfer protocol. When you enter http:// in your address bar of the web browser in front of the domain. It tells the browser to connect over HTTP and uses TCP on the port number 80, to send and receive the data packets over the web.

To put it in a simpler way HTTP protocol is used by a client and server which allows you to communicate with other websites.

The client sends a request message to a HTTP server which hosts a website, the server then replies with the response message. The response message contains completion status information. Such as HTTP 200 Ok.

HTTPS Protocol

HTTPS stands for Hypertext Transfer Protocol Secure (https) is a combination of the Hypertext Transfer Protocol (HTTP) with the Secure Socket Layer (SSL)/Transport Layer Security (TLS) protocol.

TLS is an authentication and security protocol widely implemented in browsers and Web servers.

When you enter https:// in your address bar in front of the domain. It tells the browser to connect over HTTPS. Generally, sites running over HTTPS will have a redirect in place so even if you type in http:// it will direct to deliver over a secured connection HTTPS also uses TCP to send and receive data packets.

But, it does so over port number 443, and also encrypted by the transport layer security(TLS).

Previous                                                                                                               Next