diff --git a/ahc/src/main/java/de/swingbe/ahc/Main.java b/ahc/src/main/java/de/swingbe/ahc/Main.java index 0ccecb9..f7c4c3c 100644 --- a/ahc/src/main/java/de/swingbe/ahc/Main.java +++ b/ahc/src/main/java/de/swingbe/ahc/Main.java @@ -92,12 +92,6 @@ public class Main { HttpClient client = new DefaultHttpClient(ccm, params); - /**TODO - List nvps = new ArrayList(); - nvps.add(new BasicNameValuePair("key1", "val1")); - nvps.add(new BasicNameValuePair("key2", "val3")); - */ - String address = URL + ":" + PORT + ROUTE; System.out.println("address: " + address); @@ -141,14 +135,6 @@ public class Main { entity = new ByteArrayEntity(payload.toString().getBytes(StandardCharsets.UTF_8)); post.setEntity(entity); - /**TODO - try { - post.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8)); - } catch (UnsupportedEncodingException e) { - e.printStackTrace(); - } - */ - //send request HttpResponse response = null; try { @@ -158,7 +144,6 @@ public class Main { e.printStackTrace(); } - //read response status Scanner sc = null; if (response != null) { @@ -201,8 +186,6 @@ public class Main { statusPhrase = response.getStatusLine().getReasonPhrase(); System.out.println("statusPhrase: " + statusPhrase); } - - } static void post(final String uuid, final double latitude, final double longitude,