title: How to get Content on Post Method
body: <p>I've used below code for <code>HttpPost</code>, Its execute successfully. But unable to see the response.I get <code>InputStream</code>. I want to know what are the contents in it.</p>
  
  <p>I want to display as string format.How to do this.</p>
  
  <pre><code>        HttpPost httppost = new HttpPost(requestURL);
          ArrayList&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(params.length);
  
          for (int postValueCount = 0; postValueCount &lt; params.length; postValueCount++)
              nameValuePairs.add(new BasicNameValuePair(params[postValueCount][0],params[postValueCount][1]));
  
          try {
              httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
              Log.d("HttpPostRequest","URL : " + httppost.getRequestLine().getUri());
              Log.d("HttpPostRequest","Method : " + httppost.getRequestLine().getMethod());
              Log.d("HttpPostRequest","Parameters : " + nameValuePairs);
              response = httpclient.execute(httppost);
              status = response.getStatusLine();
  
              if (status.getReasonPhrase().equals("OK")) {
                  httpEntity=response.getEntity();
                  InputStream in = httpEntity.getContent();               
                  return in;
              } else {
                  Log.d("Http Status", status.getReasonPhrase());
              }
  
          }
  </code></pre>