📜  request-promise-native 错误 RequestError: 错误: 无法验证第一个证书 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:18.282000             🧑  作者: Mango

代码示例1
request.post({url: "https://example.com", "rejectUnauthorized": false}, form)
   .on('response', function(response) {

   if (response.statusCode === 200) {
     console.log("DONE");
   } else {
     console.log("FAIL");
   }
});