let auth = "Basic " + new Buffer("user" + ":" + "user").toString("base64");
request({
uri: `localhost:8443`,
headers : {
"Authorization" : auth,
'Accept-Charset': 'utf-8',
},
method: `POST`,
json: data
},(error, req, body)=>{
if (error) throw(error);
})