Is there any difference between the get requests of the two node backend request packets (superagent and request)?

  superagent
  // 
  .get("http://passport.chinahr.com/ajax/m/existLoginName")
  .query("input" + "=" + 15800000000)
  .end(function (err, response) {
    console.log("", response.body, err)
  });

  request
  .get("http://passport.chinahr.com/ajax/m/existLoginName?input=15800000000", function (err, res) {
    console.log("req", res.body)
  })
  
  
  request.get superagent
Mar.02,2021

if the response content-type is text , superagent will be placed in response.text .

Menu