0
Hello, I’m trying to get the http response code, and I’m using this code :
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("GET");
connection.connect();
int code = connection.getResponseCode();
The problem is the following : getResponseCode(); get the code once ? , or by calling it it will update the status with the current code?