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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36755-2c010.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36755-2c010.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?