What is the difference between the HTTP module and the HTTPS module?

http.reques t"s protocol defaults to http , that is, it can be changed to https . Doesn"t that make a https request? The description of the Https module in the official document is also very simple, "the HTTPS protocol is implemented as a separate module." there is no clear distinction at all, and what happens when a http request is made to a Https server?

May.08,2021

1.https = http + ssl
2. In other words, both http and https essentially send http requests, except that https is a secure version, and the transmitted data is encrypted
3. To support https, browsers or clients that initiate requests, you need to support certificate resolution
4. What happens when a http request is made to a Https server? In general, servers that support https support http, to redirect requests from http to the address of https
5 for security reasons. Please refer to

I have figured out that the protocol of the options parameter of .http.request does not support the https protocol. To send a https request, you must use the https module. It's as simple as that. Maybe it's because I don't describe the problem well. Neither of the above two bigwigs has answered the question.


the difference between https module and http module is different when creating http services.
of course there is not much difference when you use request to request other http services. It is also very clear in the document

.
Menu