Cnosdb, Time Series Database, Plc, Industrial Automation, Real Time Data.
password; byte[] encodedAuth = Base64.getEncoder().encode(auth.getBytes()); String authHeaderValue = "Basic " + new String(encodedAuth); URL url = new URL(apiUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST");