/** * Send a line of install info to the BIRCH server for download statistics ** * @param version BIRCH version being installed * @param platform platform on which BIRCH is being installed * @param update whether this method is supposed to update an existing BIRCH installation (if true), or install a fresh copy of BIRCH (if false) * */ private static void SendStatsToBirch(String version, String platform, boolean update, OutputConsole logger) throws IOException { //final String STAT_URL_BASE = "http://flamingo.plants.umanitoba.ca/cgi-bin/birch/birchtally.cgi?"; final String STAT_URL_BASE = "http://brassica.plants.umanitoba.ca/cgi-bin/birch/birchtally.cgi?"; PrintStream logstream = logger.getLogStream(); // Create URL String insttype; if (update) { insttype = "update"; } else { insttype = "new"; } String DESTURL = STAT_URL_BASE + "version=" + version + "&" + "platform=" + platform + "insttype=" + insttype; // Post data to URL. See example at //http://stackoverflow.com/questions/7471400/how-to-http-post-to-a-cgi-script }