title: How to do POST in Dart command line HttpClient
body: <p>I'm struggling with putting together a Dart command line client capable of doing http POST.
  I know that I can not use dart:html library and have to use dart:io</p>
  
  <p>The beginning seems simple:</p>
  
  <pre><code>HttpClient client = new HttpClient();
  client.getUrl(Uri.parse("http://my.host.com:8080/article"));
  </code></pre>
  
  <p>The question is: what is the correct syntax and sequence to make this <code>HttpClient</code> do a POST and to be able to pass a JSON-encoded string into this post?</p>