I am trying to parse json response from php server. But I am getting only partial response on phone, when I am trying to log it and use. But I am getting full response when loading url at browser. In debug mode response string variable has full data.
   HttpPost httpPost = new HttpPost(url);
   httpPost.setEntity(new UrlEncodedFormEntity(params));
   httpResponse = httpClient.execute(httpPost);
   httpEntity = httpResponse.getEntity();
if (httpEntity != null) {
            // A Simple JSON Response Read
            InputStream instream = httpEntity.getContent();
            response = convertStreamToString(instream);
            // now you have the string representation of the HTML request
            instream.close();
        }
   private static String convertStreamToString(InputStream is) {
    BufferedReader reader = new BufferedReader(new InputStreamReader(is));
    StringBuilder sb = new StringBuilder();
    String line = null;
    try {
        while ((line = reader.readLine()) != null) {
            sb.append(line);
        }
    } catch (IOException e) {
        e.printStackTrace();
    } finally {
        try {
            is.close();
            reader.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    return sb.toString();
}
 
     
    