Why can node send http requests as a server? What other requests can node send besides http requests?

Why can node send http requests as a server? What other requests can node send besides http requests? Xiaobai, solve the underlying principle

Jun.24,2021

because the backend often needs to communicate with a third party, for example, if you want to transfer the interface of a third party, if the front end requests it, there will be cross-domain problems and security problems. However, back-end languages will communicate with third-party interfaces. Generally, the common way is xml, because node uses js language, so it is more convenient to use http, that is, json, to transmit data.


all background languages can send http requests, not just node. The most commonly used is to call someone else's interface

Menu