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
The beginning seems simple:
HttpClient client = new HttpClient();
client.getUrl(Uri.parse("http://my.host.com:8080/article"));
The question is: what is the correct syntax and sequence to make this HttpClient
do a POST and to be able to pass a JSON-encoded string into this post?