title: NodeJS request through NTLM authentication
body: <p>in  a corporate environment I am trying to crawl a web application. I have to access it through a proxy running on CNTLM.</p>
  
  <p>I tried these libraries - request-ntlm and httpntlm. After fixing some small issues with the libraries, I finally got a result saying the credentials are not valid.</p>
  
  <p>This is my entire (not working) solution:</p>
  
  <pre><code>var ntlm = require('request-ntlm');
  
  var opts = {
    username: 'myaccount-clean text',
    password: 'mypassword-clean text',
    _domain: 'mydomain-clean text',
    workstation: '',
    url: 'https://web i am trying to access that requires ntlm',
    proxy: "http://127.0.0.1:3128"
  };
  var json = {
    // whatever object you want to submit 
  };
  ntlm.get(opts, json, function(err, response) {
     if ( err ) {
      console.log( err );
     }
     else {
         console.log( response );
     }
  });
  </code></pre>
  
  <p>PS: If u run into trouble compiling the request-ntlm, just replace options.domain in the ntlm.js and index.js file with _domain.</p>