nvps.add(new BasicNameValuePair("api_key", sg.getApiKey()));
post.setEntity(new UrlEncodedFormEntity(nvps));
HttpResponse resp = client.execute(post);
String respTxt = EntityUtils.toString(resp.getEntity());
Gson g = new Gson();
GridResponse gr = g.fromJson(respTxt, GridResponse.class);
if (gr.getMessage() != null && !gr.getMessage().equals("") && gr.getMessage().equals("success"))
return true; //nailed it
return false;
} finally {
client.getConnectionManager().shutdown();
}