How to use the httpntlm.get function in httpntlm

To help you get started, we’ve selected a few httpntlm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nrkno / odashboard / httpclient.js View on Github external
return new Promise(function (resolve, reject) {
    ntlm.get(opts, function (err, response) {
      if (err) {
        reject(Error(err));
      } else {
        if (response.statusCode == 401) {
          reject(Error('Not authenicated.'));
        } else {
          resolve({
            response: response,
            body: response.body
          });
        }
      }
    });
  });
}

httpntlm

httpntlm is a Node.js library to do HTTP NTLM authentication

MIT
Latest version published 9 months ago

Package Health Score

71 / 100
Full package analysis