title: How to set the content length with node.js request module
body: <p>Here is the code that tries to submit a multipart/form-data according to <a href="https://github.com/mikeal/request#forms" rel="nofollow">documentation</a>:</p>
  
  <pre><code>  var request = require('request');
    var req = request.post('http://echo.httpkit.com',
      function (err, resp, body) {
        console.log(body);
      });
    var form = req.form()
    form.append('name', 'value')
  </code></pre>
  
  <p>The response is:</p>
  
  <blockquote>
    <p>411 Length Required</p>
  </blockquote>