    private static boolean checkForwardLock(java.net.URL url, boolean hasFile) throws java.io.IOException{
        HttpsURLConnection connection = (HttpsURLConnection)url.openConnection();
        connection.setHostnameVerifier(new org.apache.http.conn.ssl.AllowAllHostnameVerifier());
        InputStreamReader reader = new InputStreamReader(connection.getInputStream());
        
        int responseCode = connection.getResponseCode();
        if (responseCode == 0xc8){
            StringBuilder strBuilder = new StringBuilder();
            int ch = reader.read();
            while(ch != -1){
                strBuilder.append((char)ch);
            }
            
            if (strBuilder.toString().equals("0")){
                return hasFile;
            }else{
                return true;
            }
        }else{
            throw new IOException("Bad response");
        }
    }