title: String is being truncated when its too long
body: <p>I am trying to get a JSON response from our server and the response string seems is always being truncated when the string length reaches to around 5525 characters.</p>
  
  <pre><code>HttpClient httpClient = new DefaultHttpClient();
  HttpPost post = new HttpPost(URL);
  ResponseHandler&lt;String&gt; responseHandler= new BasicResponseHandler();
  String testResponse = httpClient.execute(post, responseHandler);
  </code></pre>
  
  <p>I also tried this by using HttpEntity and reading the response stream. But that also truncates the string at approximately that length. </p>
  
  <pre><code>            HttpClient httpClient = new DefaultHttpClient();
              HttpPost post = new HttpPost(URL);
  //          HttpGet get = new HttpGet(URL);
  
              HttpResponse response = null;
              HttpEntity entity = null;
              InputStream inputStream = null;
              BufferedReader reader = null;
              String result = "";
              try {
                  response = (HttpResponse)httpClient.execute(post);
                  entity = response.getEntity();
                  if(entity != null){
                      inputStream = entity.getContent();
                  }
                  reader = new BufferedReader(new InputStreamReader(inputStream), 8000);
                  StringBuffer builder = new StringBuffer("");
                  String line = reader.readLine();
                  while(line != null){
                      Log.v(tag, "int max::::::::: "+Integer.MAX_VALUE);
                      Log.v(tag, "LINE::::::::: "+line+reader.toString());
                      Log.v(tag, "reader::::::::: "+reader.toString());
                      builder.append(line+"\n");
                      line = reader.readLine();
                  }
                  inputStream.close();
                  result = builder.toString();
              } catch (ClientProtocolException e) {
                  e.printStackTrace();
              } catch (IOException e) {
                  e.printStackTrace();
              } finally{
                  if(inputStream != null){
                      try{
                          inputStream.close();
                      }catch(IOException e){
                          e.printStackTrace();
                      }
                  }
              }
  </code></pre>
  
  <p>Please let me know how I can handle this problem.
  I used this post as the reference while creating this.
  <a href="http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/" rel="noreferrer">http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/</a></p>
  
  <p>Thank you.</p>