SamDecrock / node-http-ntlm

Node.js module to authenticate using HTTP NTLM
MIT License
192 stars 89 forks source link

Can't exec example client #84

Closed dmvstar closed 5 years ago

dmvstar commented 5 years ago

After execute code from example like

var httpntlm = require('httpntlm'); httpntlm.get({ url: "https://someurl.com", username: 'm$', password: 'stinks', workstation: 'choose.something', domain: 'domain' }, function (err, res){ console.log(err); if(err) return err; console.log(res.headers); console.log(res.body); });

I have a error and I don't know how to fix it.

Error: www-authenticate not found on response of second request at sendType3Message (C:\home\programs\node\node_modules\httpntlm\httpntlm.js:70:20) at Immediate._onImmediate (C:\home\programs\node\node_modules\httpntlm\httpntlm.js:101:4) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5)

dmvstar commented 5 years ago

Resolved The problem was the incorrect behavior of the IIS server

dmvstar commented 5 years ago

Resolved The problem was the incorrect behavior of the IIS server