title: Android how to send GET and JSON data to server and get response
body: <p>Hi i need to send a get to a server. and get  a response from the server.
  the data is JSON. do i need to add the data to the URL like in the WEB ?
  I have all the time errors need help </p>
  
  <pre><code>    HttpClient httpClient = new DefaultHttpClient();  
          String url = "http://api.avakoo.com/Entry.svc/JSON/Register?args=%7B%22password%22%3A%22vhfju%22%2C%22email%22%3A%22fhcnh%22%7D";
          HttpGet httpGet = new HttpGet(url);
          HttpResponse response = httpClient.execute(httpGet);
          StatusLine statusLine = response.getStatusLine();
          if (statusLine.getStatusCode() == HttpStatus.SC_OK) {
              HttpEntity entity = response.getEntity();
              ByteArrayOutputStream out = new ByteArrayOutputStream();
              entity.writeTo(out);
              out.close();
              String responseStr = out.toString();
  </code></pre>
  
  <p>I say some example but nationg work can someone advise to me how to send the date and get a response from the server.
  when i but the URL in the browser i get a response.
  i encode the data white the utf 8</p>