title: how to get response of get Request on java
body: <p>I'm doing an android app, and I just do an get http request and I just wanna knows what I'm doing bad.</p>
  
  <p>this is my request:</p>
  
  <pre><code>try {
      String encodedUserNAme = idDispositivo;
      encodedUserNAme =  URLEncoder.encode(encodedUserNAme, "utf-8");
      String url = Constants.URL_OBTENER_GRUPO + "?" + "user="+ idDispositivo;
      Log.w("ObtenerIDGrupo "," url: "+url);
  
  
  
      HttpClient client = Constants.getHttpClient();
      HttpGet httpget;
      try {
          httpget = new HttpGet(new URI(url));
  
          try{
              HttpResponse response = client.execute(httpget);
              String responseBody = EntityUtils.toString(response.getEntity());
  
                      Log.w("ObtenerIDGrupo "," RESPONSEBODY= "+responseBody);
                      idGrupo = responseBody;
                      Log.w("ObtenerIDGrupo "," idGrupo= "+responseBody);
  
          }catch(ClientProtocolException e){
              e.printStackTrace();
          }catch(IOException e){
              e.printStackTrace();
          }
      } catch (URISyntaxException e1) {
          e1.printStackTrace();
      }
  } catch (IOException e) {
      Log.w("IOException" + e);
      e.printStackTrace();
  }
  </code></pre>
  
  <p>and this i my response:</p>
  
  <p><img src="https://i.stack.imgur.com/whFv1.png" alt="enter image description here"></p>
  
  <p>i don't know why the response is like this.
  Can someone helpme please?</p>
  
  <p>Thanks</p>