const request = require("request"); var url = "https://localhost:50000/b1s/v2/Login"; var body = { CompanyDB: "", Password: "", UserName: "", }; var postheaders = { "Content-Type": "application/json", }; var options = { url: url, method: "POST", json: body, postheaders: postheaders, strictSSL: false, }; request.post(options, (error, response, body) => { if(error){ console.log(error); } else { console.log(body); } });