URL url = new URL("http://127.0.0.1:15672/api/trace-files/calculator.log"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); String userpass = "guest" + ":" + "guest"; String basicAuth = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(userpass.getBytes()); connection.setRequestProperty("Authorization", basicAuth); connection.connect(); BufferedReader buff = new BufferedReader(new InputStreamReader(connection.getInputStream()));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)