I use node.js, and have the next code:
var server = net.createServer(function(socket) {
socket.on('data', function(d) {
console.log(d);}}
I see that it prints the next:
<Buffer 47 45 54 20 2f 20 48 54 54 50 2f 31 2e 31 0..>
Even if I open a conection in my localhost. What can be the reason? How I change it that it would get the http request?
http.createServer.