web123456

Report an error net::ERR_CONNECTION_REFUSED

GET https://localhost/cms/content/productDetailInfo/id/653 net::ERR_CONNECTION_REFUSED

Just change to the following code

url: "http://localhost/cms/content/productDetailInfo/id/653", //Path

The difference between http and https

Hypertext Transfer Protocol HTTP ProtocolIt is used to pass information between a web browser and a website server, and the HTTP protocol isPlain textSend content without providing any method of data encryption. If an attacker intercepts transmission packets between the web browser and the website server, he can directly understand the information. Therefore, the HTTP protocolNot suitable for transmitting some sensitive information, such as: credit card number, password and other payment information.

In order to solve this defect of the HTTP protocol, another protocol is needed: the secure socket layer hypertext transmission protocol HTTPS. For the security of data transmission, HTTPS adds the SSL/TLS protocol based on HTTP. SSL/TLS relies on certificates to verify the identity of the server and encrypts the communication between the browser and the server.
     HTTPS protocol is a network protocol built by SSL/TLS+HTTP protocol that can perform encrypted transmission and identity authentication, which is safer than the http protocol.
     The main functions of the HTTPS protocol can be divided into two types: 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.

Key differences

1. The https agreement requires applying for a certificate from the CA. Generally, there are fewer free certificates, so a certain fee is required.

         2. http is a hypertext transmission protocol, information is plain text transmission, and https is a secure SSL/TLs encryption transmission protocol.

         3. http and https use completely different connection methods, and the ports used are also different. The former is 80 and the latter is 443.

         4. The connection of http is very simple and stateless; the HTTPS protocol is a network protocol built by the SSL/TLS+HTTP protocol that can perform encrypted transmission and identity authentication, which is safer than the http protocol.