title: HttpPost get HTTP response code Android
body: <p>I'm using</p>
  
  <pre><code>HttpPost httppost = new HttpPost(url);
  httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs,"UTF-8"));
  </code></pre>
  
  <p>in order to send data to my webservice. How could I get the http response code (like 200, 404, 500, etc) ?</p>
  
  <p>I'm not able to use <code>getResponseCode()</code> from <code>HttpURLConnection</code></p>