I don't want receive any response of server after send GET request
- Hi, i use this code below to send a simple GET request to http://domain.com/index.php
- my problem is: I don't want receive any response of server after send GET request.
- Thanks.
try{
URL url =new URL("http://domain.com/index.php?request=1");
URLConnection urlCon;
try{
urlCon = url.openConnection();
urlCon.setRequestProperty("Connection","close");
urlCon.getInputStream();
}catch(IOException e){
e.printStackTrace();
}
}catch(MalformedURLException e){
e.printStackTrace();
}

