Excerpt from: https://www.cnblogs.com/wqhwe/p/5407468.html
The Hypertext Transfer Protocol HTTP protocol is used to pass information between a Web browser and a Web server, the HTTP protocol sends content in plaintext, does not provide data encryption in any way, and if an attacker intercepts a transmission message between a Web browser and a Web server, it can read the information directly, so HTTP protocol is not suitable for transmitting some sensitive information, such as credit card number, password and other payment information.
In order to solve this flaw of the HTTP protocol, we need to use another protocol: Secure Sockets Layer Hypertext Transfer Protocol HTTPS, in order to secure the data transmission, HTTPS on the basis of HTTP added SSL protocol, SSL relies on certificates to verify the identity of the server, and encrypt the communication between the browser and the server.
Concept
HTTP: Is the most widely used Internet protocol, is a client and server-side request and response Standard (TCP), used to transfer from the www server hypertext to the Local browser transport protocol, It can make the browser more efficient and reduce the network transmission.
HTTPS: is a security-targeted HTTP channel, simply speaking is the security version of HTTP, that is, HTTP under the SSL layer, HTTPS security base is SSL, so the details of encryption requires SSL.
The main role of HTTPS protocol can be divided into two kinds: one is to establish an information security channel to ensure the security of data transmission, the other is to confirm the authenticity of the website.
Difference
1, the HTTPS protocol requires a certificate to the CA, generally less free certificate, and therefore a certain cost.
2, HTTP is a Hypertext Transfer Protocol, the information is plaintext transmission, HTTPS is a secure SSL encryption Transfer protocol.
3, HTTP and HTTPS use a completely different way of connection, with the same port, the former is 80, the latter is 443.
4, the HTTP connection is very simple, is stateless; The HTTPS protocol is a network protocol built by the SSL+HTTP protocol for encrypted transmission and authentication, which is more secure than the HTTP protocol.
Application
HTTPS everywhere!
HTTP protocol can not encrypt data, all communication data in the network plaintext "naked", which is caused by data leakage, data tampering, traffic hijacking, phishing attacks and other security issues of important reasons. And HTTPS is used to solve the defects of HTTP plaintext protocol, on the basis of the HTTP SSL/TLS protocol, relying on SSL certificate to verify the identity of the server, the client and the server to establish an "SSL" channel to ensure data transport security.
In fact, the light has HTTPS is not enough, the whole station HTTPS is the heaviest.
HTTP HTTPS differences