assaf/zombie — Issue #278: Cannot open URLs from localhost
Author: michaelsauter
Created: 2012-02-09 16:19:53+00:00
State: open

This snippet:

```
var Browser = require("zombie");
Browser.debug = true
var assert = require("assert");
browser = new Browser()
browser.visit("http://localhost/test.html", function () {
console.log(browser.html())
});
```

returns:

```
Zombie: GET http://localhost/test.html

Zombie: GET http://localhost/test.html => 200
```

Accessing the same page in the browser works, also via node.js request package:

```
var request = require('request');
request('http://localhost/test.html', function (error, response, body) {
console.log(body)
})
```

returns:

```

test

test

```

Any idea why this is the case? Maybe a bug or wrong configuration from my side?
External websites such as google.com work perfectly.
The installation of zombie via npm appeared to be fine to me.