, HttpUrlConnection:
int status = ((HttpURLConnection) connection).getResponseCode();
Log.i("", "Status : " + status);
HttpClient:
HttpResponse response = httpclient.execute(httppost);
Log.w("Response ","Status line : "+ response.getStatusLine().toString());