Closed pettersamuelsen closed 1 year ago
You can just pass in extra headers using the regular options object:
httpntlm.get({
url: "https://someurl.com",
username: 'm$',
password: 'stinks',
workstation: 'choose.something',
domain: '',
headers: {
'X-Custom-Header': 'value',
}
}, function (err, res){
if(err) return err;
console.log(res.headers);
console.log(res.body);
});
I had to send some custom headers with my ntlm requests so now you can do the following: