title: Mirth HTTP POST request with Parameters using Javascript
body: <p>The following code by @Nick Rupley works well, but, I need also to pass parameters as POST. How do we pass POST parameters?
  from <a href="https://stackoverflow.com/questions/45554677/mirth-javascript-import/45555248#45555248">java.net.URL</a></p>
  
  <pre><code>var url = new java.net.URL('http://localhost/myphpscript.php');
  var conn = url.openConnection();
  var is = conn.getInputStream();
  try {
      var result = org.apache.commons.io.IOUtils.toString(is, 'UTF-8');
  } finally {
      is.close();
  }
  </code></pre>
  
  <p>2 Parameters to pass: firstname="John" and lastname="Smith"</p>
  
  <p>Thanks</p>