I see one has to make sure that the DNS is resolved properly from the machine, check out the node documentation to make sure that domain
Avoid all of these hostname/protocol/port/slash problems by using the request module instead of http
request
http
https://github.com/mikeal/request