title: Express.js proxy post request
body: <p>I reviewed request module for node <a href="https://github.com/mikeal/request" rel="nofollow">https://github.com/mikeal/request</a>
  But can't figure out how to proxy POST request to remote server, example</p>
  
  <pre><code>app.post('/items', function(req, res){
    var options = {
        host: 'https://remotedomain.com',
        path: '/api/items/,
        port: 80
      };
      var ret = res;
      http.get(options, function(res){
        var data = '';
        res.on('data', function(chunk){
          data += chunk;    
        });
  
        res.on('end', function(){
          var obj = JSON.parse(data);
          ret.json({obj: obj});
          console.log('end');
        });
      });
  });
  </code></pre>