title: Can't get full body of HttpResponse
body: <p>I put my code in AsyncTask, in OnPostExecution, the result in Dialog is different from the one which is logged in Logcat.
  The one in Logcat is incomplete, the one in Dialog is complete</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    private class DownloadTask extends AsyncTask&lt;String, Void, String&gt;{     
      @Override
      protected String doInBackground(String... params) {
          // TODO Auto-generated method stub          
          String url =params[0];
          String data = "";
          try{
              HttpClient httpClient = new DefaultHttpClient();
              HttpContext localContext = new BasicHttpContext();
              HttpPost httpPost = new HttpPost(url);
              HttpResponse httpResponse = httpClient.execute(httpPost,localContext);
              int status = httpResponse.getStatusLine().getStatusCode();
              if(status == 200){ //Receive OK
                  data = EntityUtils.toString(httpResponse.getEntity());
              }
          }catch(Exception e){
              Log.e("HTTP", "ERROR");
          }
          return data;
      }
  
      @Override
      protected void onPostExecute(String result) {
          // TODO Auto-generated method stub
          super.onPostExecute(result);    
              AlertDialog.Builder builder = new Builder(MainActivity.this);
              builder.setMessage(result);
              builder.setPositiveButton("OK", null);
              builder.create().show();
              Log.d("Response", result);
      }       
  </code></pre>
  
  <p>In method onCreate(), I executed DownloadTask:</p>
  
  <pre><code>String url = "https://maps.googleapis.com/maps/api/directions/json?origin=10.9052136,106.6928473&amp;destination=10.736465,106.710779&amp;sensor=false&amp;units=metric&amp;mode=driving";
  
  DownloadTask downloadTask = new DownloadTask();
  downloadTask.execute(url);
  </code></pre>
  
  <p>I want to receive complete result to parse to JSON</p>