In RestClient.java, the line 188 should have & for multiple key/value pairs.
out.write(key + "=" + value);