public static void main() {
        try {
            JSONObject jsonObj = new JSONObject();
            jsonObj.put("username", "testuser12345");
            jsonObj.put("password", "xxxx");
            jsonObj.put("vm_type",  "neuroimaging");

            HttpClient httpclient = new DefaultHttpClient();
            HttpPost httpPost = new HttpPost("https://cvl.massive.org.au/cvlvm");

            httpPost.setEntity(new StringEntity(jsonObj.toString(), "application/x-www-form-urlencoded", "UTF-8"));

            HttpResponse response = httpclient.execute(httpPost);
        } catch (UnsupportedEncodingException e) {
            // FIXME
            System.out.println("UnsupportedEncodingException");
        } catch (JSONException e) {
            // FIXME
            System.out.println("JSONException");
        } catch (IOException e) {
            // FIXME
            System.out.println("IOException");
        }
    }