cURL equivalent in Node.js?

后端 未结 18 619
误落风尘
误落风尘 2020-11-29 16:43

I\'m looking to use information from an HTTP request using Node.js (i.e. call a remote web service and echo the response to the client).

In PHP I would have used cUR

18条回答
  •  青春惊慌失措
    2020-11-29 17:07

    well if you really need a curl equivalent you can try node-curl

    npm install node-curl
    

    you will probably need to add libcurl4-gnutls-dev.

提交回复
热议问题