title: PhantomJS doesn't send authentication header
body: <p>I'm trying to open a web page which requires HTTP authentication, in PhantomJS.
  My script is based off the loadspeed.js example:</p>
  
  <pre><code>var page = require('webpage').create(),
      t, address;
  page.settings.userName = "user";
  page.settings.password = "password";
  if (phantom.args.length === 0) {
    console.log('Usage: loadspeed.js &lt;some URL&gt;');
    phantom.exit();
  } else {
    t = Date.now();
    address = phantom.args[0];
    page.open(address, function (status) {
        if (status !== 'success') {
            console.log('FAIL to load the address');
        } else {
            t = Date.now() - t;
            console.log('Loading time ' + t + ' msec');
            page.render('page.jpg');
        }
        phantom.exit();
    });
  }
  </code></pre>
  
  <p>I can see from the rendered page.jpg that I'm getting a 401 every time.
  I've also traced the HTTP session using Wireshark, which reveals that no authentication header is sent in the GET request to the given URL.</p>
  
  <p>What am I doing wrong here? I'm just getting started with PhantomJS but I've been searching all evening and not gotten far...</p>