private static boolean sendUpdate() {
        try {
            URL statManager = new URL(PHPSCRIPT_URL + "sid=" + SESSIONID + "&run=true");
            InputStream is = statManager.openStream();
            
            // One byte is read from the web server, the error code.
            int result = is.read() - 48;
            System.out.println("Update result: " + result);
            is.close();
            
            // If we got here, everything went well.
            return true;
            
        } catch(MalformedURLException mfurle) {
            System.out.println("infoFarmer:"+mfurle);
            return false;
        } catch (IOException ioe) {
            System.out.println("infoFarmer:"+ioe);
            return false;
        }catch(Exception e){
            System.out.println("infoFarmer:"+e);
            return false;
        }
    }