I am trying to use PhantomJS on a page with basic always auth, for example, this page http://alexturpin.net/auth (test:rosebud) Using the following code var webpage = require('webpage'); page = webpage.create(); page.settings = { userName: "test", password: "rosebud" }; page.open("http://alexturpin.net/auth/", function(status) { console.log(status); var retval = page.evaluate(function() { return "