coolaj86/abstract-http-request — Issue #21: doesn't set HOST in node
Author: coolaj86
Created: 2011-11-16 01:07:35+00:00
State: open

Works:

curl http://109.169.56.223 -H 'Host: foobar300.com'

Fails:

(function () {
"use strict";
var request = require('ahr2')
;

request({
"host": '109.169.56.223'
, "headers": {
"Host": "foobar3000.com"
}
}).when(function (err, ahr2, data) {
console.log(data.toString());
});
}());