title: POST Request using req.write() and req.end()
body: <p>I'm trying to do <code>HTTP POST</code> using the the <a href="https://github.com/mikeal/request" rel="nofollow"><code>request</code></a> module from a node server to another server.</p>
  
  <p>My code looks something like,</p>
  
  <pre><code>var req = request.post({url: "http://foo.com/bar", headers: myHeaders});
  ...
  ...
  req.write("Hello");
  ...
  ...
  req.end("World");
  </code></pre>
  
  <p>I expect the body of the request to be <code>"Hello World"</code> on the receiving end, but what I end up with is just <code>""</code>.</p>
  
  <p>What am I missing here?</p>
  
  <p>Note: The ellipsis in the code indicates that the <code>write</code> and the <code>end</code> might be executed in <em>different process ticks</em>.</p>