function submitForm() {
  var form = new FormData();

  form.append('my_field', 'my_value');

  form.submit('http://localhost:' + common.port + '/', function (err, res) {
    if (err) {
      throw err;
    }

    assert.strictEqual(res.statusCode, 200);

    /*
     * Needed for node-0.10.x because Streams2
     * more info: http://nodejs.org/api/stream.html#stream_compatibility_with_older_node_versions
     */
    res.resume();

    times -= 1;
    if (times === 0) {
      server.close();
    }
  });
}
Test parallel submissions to the same server