nodejs如何向别的网站发送post请求,并且带有参数
      
      
      
    
    nodejs如何向别的网站发送post请求,并且带有参数
      7 回复
    
    request
request的基本功能就能实现
var http = require(‘http’); http.request(opt, function () {});
const rp = require('request-promise')
const options = {
	url, headers,......
}
rp.post(options).then(t => {
	......
})
request http(s) request-promise urllib等
相比request 我更喜欢 superagent
axios 用了就知道了