title: How to read data events (chunks) from node.js request object
body: <p>I'm having trouble with something very basic. Going through node.js in Action (great book so far!) and I can't get this simple example to work. Perhaps it's because the stream api was updated after the book came out. I'm not sure. Anyway, here's the code:</p>
  
  <pre><code>var http = require('http');
  
  var server = http.createServer(function (req, res) {
    req.on('data', function (chunk) {
      console.log("Chuck: ", chunk);
    });
    req.on('end', function () {
      console.log("End of Request");
      res.end('yay');
    });
  }).listen(3000);
  </code></pre>
  
  <p>The console.log('Chunk: ', chunk) never fires. It's almost as if the data events never fire, but according to the documentation the presence of the data handler should switch the readable stream (req) into flowing mode. Am I missing something?</p>
  
  <p>Any help would rock!</p>