HTTP is more efficient and HTTPS is more secure.
http: Hypertext Transfer Protocol for passing 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 the HTTP protocol is not suitable for transmitting sensitive information such as credit card numbers, passwords, etc.
HTTPS: Secure Hypertext Transfer Protocol, which is based on SSL, is now widely used for security-sensitive communications on the World Wide Web, such as transaction payments
To address this flaw in the HTTP protocol, you need to use a different protocol: Secure Sockets Layer Hypertext Transfer Protocol HTTPS. For the security of data transmission, HTTPS joins the SSL protocol on the basis of HTTP, SSL relies on the certificate to verify the identity of the server, and encrypts the communication between the browser and the server. The main differences between HTTPS and HTTP are the following four points: first, the HTTPS protocol requires a certificate to the CA, the general free certificate is very small, need to pay. Second, HTTP is a Hypertext Transfer Protocol, the information is plaintext transmission, HTTPS is a secure SSL encryption Transfer protocol. Third, HTTP and HTTPS use a completely different way of connection, with the same port, the former is 80, the latter is 443. Four, HTTP connection is very simple, is stateless; The HTTPS protocol is a network protocol built by the SSL+HTTP protocol to encrypt the transmission and authentication, which is more secure than the HTTP protocol. SSL is a security-confidentiality protocol presented by Netscape companies in browsers such as Internet Explorer, Netscape Navigator, and Web servers such as Netscape Enterprise server for Netscape, ColdFusion server and so on) to construct a secure channel for data transmission, SSL runs above the TCP/IP layer, under the application layer, to provide encrypted data channel for the application, it uses encryption algorithms such as RC4, MD5, and RSA, using 40-bit keys, For encryption of business information.
The difference between HTTPS and HTTP