request({
url: config.endpoint+'/name',
auth: {
username: 'Name',
password: 'Pass'
},
method: 'POST',
json: true,
strictSSL: false,
body: {json: 123}
}, async (e, resp, data) => {
});
curl -k -u Name:Pass -H 'Content-Type: application/json' -d '{"data":"123"}' https://url/name