Not getting the response body for http post request in android?
<p>Not getting the response body for http post request in android.<br>
I am mentioning the userid, password in the name value pairs and putting in the httppost request by   </p>

<pre><code>postrequest.setEntity(new UrlEncodedFormEntity(nameValuePairs));  
</code></pre>

<p>but on executing i am getting the response as SC_OK(200), but the response body is <code>null</code>.</p>

<p>One more problem is if i specify header in  HTTPGet or HTTPPost's request using <code>setHeader()</code> function i am getting BAD REQUEST (404) response.   </p>

<p>Please help me in resolving the above issue.</p>

<p>Thanks &amp; Regards,<br>
SSuman185</p>
