I was viewing this post while trying to get started Node.js, and I started working with this guide to learn the basics.
The code for my server is :
var http = require('http');
http.createServer(function (request, response) {
request.on('end', function() {
response.writeHead(200, {
'Content-Type' : 'text/plain'
});
response.end('Hello HTTP!');
});
}).listen(8080);
When I go to localhost:8080 (per the guide), I get a 'No Data Received' error. I've seen some pages that say https:// are required, but that returns a 'SSL Connection Error'. I can't figure out what I'm missing.