i'm trying to send HTTP GET Request with values passed in URL for the site
http://somenthing.com/c/chk.php?val=somevalue
I used the following code but it doesn't seems to work
HttpResponse response = null;
try {
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet();
request.setURI(new URI("http://somenthing.com/c/chk.php?val=somevalue"));
response = client.execute(request);
}
catch (URISyntaxException e)
{
e.printStackTrace();
}
catch (ClientProtocolException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
return;
i'm not getting any error, the above code works when the button is pressed and I have used the permission.
Upon receiving the HTTP GET Request the back end process is done by server.