I've searched everywhere on how to make this happen but with no results. First I need to make a request to a website then send a hash (which I already have) and get a response with some data. I was able to connect but I'm not able to use the hash key to get the data. Can anyone help me how to do this using android? Thanks.
I tried to follow this:Make an HTTP request with android using a host
The solution:
final HttpClient client = new DefaultHttpClient();
final HttpPost postMethod = new HttpPost(URL);
postMethod.setEntity(new StringEntity(postData, "utf-8"));
String responseData = "";
try {
final HttpResponse response = client.execute(postMethod);
responseData = EntityUtils.toString(response.getEntity(), "utf-8");
} catch(final Exception e) {
// handle exception here
}