var myserver = require('http').createServer().listen(8080);
myserver.on('request', function(x, y){
y.write("1");
x.on('data', function(z){
console.log(z.toString());
//process.stdout.write(msg.toString());
});
x.on('end', function(){
y.end();
});
});