title: Android Http request ClientProtocolException
body: <p>I have an API that seems to be working perfect when I test it using Firefox's "REST Client" or Google Chrome's "Simple REST Client"
  However, when I send an Http request using Android SDK I get the following exception:</p>
  
  <p>ClientProtocolException: the server failed to respond with a valid HTTP response</p>
  
  <p>also when I test using Google Chrome's "Advanced REST client" I got an empty response, so any idea about what might be causing this ?</p>
  
  <p><code>
  DefaultHttpClient httpClient = new DefaultHttpClient();<br>
  HttpResponse httpResponse = null;<br>
  HttpPost httpPost = new HttpPost(Constants.URL);<br>
  httpPost.setHeader("Content-Type", "application/json");<br>
  httpPost.setHeader("Accept", "application/json");<br>
  StringEntity se = new StringEntity(params,HTTP.UTF_8);<br>
  httpPost.setEntity(se);<br>
  httpClient.execute(httpPost);
  </code></p>