HttpResponse res = null;
String tdf = "";
try {
method.setEntity(new UrlEncodedFormEntity(postParams));
res = client.execute(method);
tdf = handler.handleResponse(res);
} catch (HttpResponseException e) {
System.err.printf("Server returned error: %d : %s\n",
res.getStatusLine().getStatusCode(),
res.getStatusLine().getReasonPhrase());
switch (res.getStatusLine().getStatusCode()) {